Why cannot iterate over Model.objects.all()?

前端 未结 0 358
暖寄归人
暖寄归人 2021-01-20 23:23

In Django shell I don\'t have any problems in looping over Airport.objects.all() but in a .py I cannot iterate over my model\'s QuerySet. Here is my co

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