wq / django-data-wizard

🧙⚙️ Import structured data (e.g. Excel, CSV, XML, JSON) into one or more Django models via an interactive web-based wizard
https://django-data-wizard.wq.io
MIT License
341 stars 53 forks source link

ImportError with DRF >= 3.8 #22

Closed funkindy closed 5 years ago

funkindy commented 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:

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

sheppard commented 5 years ago

Thanks, this will be fixed in the next release.

sheppard commented 5 years ago

Data Wizard 1.2.0 is now available on PyPI.