Why does Django models OneToOne query all objects for drop-down when ForeignKey does not?

前端 未结 0 891
时光取名叫无心
时光取名叫无心 2021-02-08 07:44

models.py

class PumpLog(models.Model):
    # work_order = models.OneToOneField(\'WorkOrder\', on_delete = models.CASCADE)
    work_order = models.ForeignKey(\'Wo         


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