django model reference to own attribute

后端 未结 0 752
别那么骄傲
别那么骄傲 2020-12-11 20:55

When i create a Django model i want to set the primary_key/ID to a combination of 2 attributes of this Model.

Example model:

class Example(models.Model         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题