django unique field

前端 未结 3 2014
误落风尘
误落风尘 2021-01-18 09:07

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 C

3条回答
  •  醉话见心
    2021-01-18 10:05

    If you need to make this unique on more than one field, have a look at: unique-together

提交回复
热议问题