How to filter out objects in a related model without filtering out any of the objects from the primary model [Django]

后端 未结 0 1729
小鲜肉
小鲜肉 2020-12-21 11:13

Let\'s say I have models that look like this:

# models.py

class Agent(models.Model):
    name = models.CharField(max_length=30)

class Deal(models.Model):
           


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