我在Tags imported but relationship not imported with django-import-export上问过这个问题,但没有人回答,我在谷歌上搜索后也找不到更多的东西可以尝试在阅读了这里关于django查询集和标签的文档和以前的答案后,我设法保存了每个引用的大部分内容,但标签没有保存。查询集不返回tags字段,这会导致AttributeError。请参阅下面的外壳输出q: <QuerySet...inactive_message':
school_finder\blog_project\locate\views.py", line 20, in MajorsAttributeError: 'QuerySet' object has no attribute 'major_id'
[16/Feb/2019 12:22:00] "GET /locate/%201/ HTTP/1.1"
我不知道为什么我会收到这个错误我是新来的姜戈我研究了很多,但我没有找到答案请在给我答案的时候尽可能多地解释我想学的东西但是如果你不想没问题谢谢,这是我的Views.py from django.views.genericC:\Users\daghe\Desktop\Alone-Osama\home\views.py", line 17, in getAttributeError: 'QuerySet' object has no attribu