'Options' object has no attribute 'get_all_related_objects' but I'm already using Django 1.11

后端 未结 1 895
悲哀的现实
悲哀的现实 2021-01-26 15:48

I keep getting an \'Options\' object has no attribute \'get_all_related_objects\' error. I\'ve researched and people say it is often an issue with using an old version of django

相关标签:
1条回答
  • 2021-01-26 16:26

    Django v1.11 support is not added for django-rest-framework until version 3.7. Upgrading django-rest-framework should fix the issue.

    To upgrade django-rest-framework, pip install -U djangorestframework

    0 讨论(0)
提交回复
热议问题