class Meta: unique_together = (("category", "code"),) # 联合唯一约束‌

root
abc abc
  • 12 Jul

class Meta:
unique_together = (("category", "code"),) # 联合唯一约束‌