'ManyToManyDescriptor' object has no attribute 'all' when accessing related_name

前端 未结 0 1462
谎友^
谎友^ 2021-02-04 09:39

I have 3 models:

class Airport(models.Model):
    code = models.CharField(max_length=3)
    city = models.CharField(max_len         


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