Django OneToOneField vs ForeignKey&Unique

前端 未结 0 772
故里飘歌
故里飘歌 2021-01-28 20:57

I have a model in Django with the following classes (among others):

class Product(models.Model):
    product = models.CharField(primary_key=True, max_length=50)

         


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