Closed funkindy closed 5 years ago
detail_route decorator was merged into action since DRF 3.8, so the line from rest_framework.decorators import detail_route causes ImportError and the app wont start:
detail_route
action
from rest_framework.decorators import detail_route
ImportError: cannot import name 'detail_route' from 'rest_framework.decorators'
Docs: https://www.django-rest-framework.org/community/3.8-announcement/#action-decorator-replaces-list_route-and-detail_route
Thanks, this will be fixed in the next release.
Data Wizard 1.2.0 is now available on PyPI.
detail_route
decorator was merged intoaction
since DRF 3.8, so the linefrom rest_framework.decorators import detail_route
causes ImportError and the app wont start:ImportError: cannot import name 'detail_route' from 'rest_framework.decorators'
Docs: https://www.django-rest-framework.org/community/3.8-announcement/#action-decorator-replaces-list_route-and-detail_route