views:

30

answers:

1

is there another REGEX way (or another way) to ensure that a model class field would be unique? (it is not a key, or at least not declared as a key, is shoulb be a simple CharField)

Thanks

+3  A: 

The normal way to make a single field unique is to use the unique argument to the field constructor.

Ignacio Vazquez-Abrams