-
Notifications
You must be signed in to change notification settings - Fork 299
replace DRF @list_route and @detail_route with @action #659
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@sliverc any idea why the codecov statuses appear to be stuck?
a160bdf
to
08cb73f
Compare
Codecov Report
@@ Coverage Diff @@ ## master #659 +/- ## ========================================== - Coverage 96.15% 96.14% -0.02% ========================================== Files 57 56 -1 Lines 2889 2876 -13 ========================================== - Hits 2778 2765 -13 Misses 111 111
Continue to review full report at Codecov.
|
1 similar comment
Codecov Report
@@ Coverage Diff @@ ## master #659 +/- ## ========================================== - Coverage 96.15% 96.14% -0.02% ========================================== Files 57 56 -1 Lines 2889 2876 -13 ========================================== - Hits 2778 2765 -13 Misses 111 111
Continue to review full report at Codecov.
|
I prefer we start cleaning up what DRF versions DJA supports then working around this issue.
See suggestion in #662 how to go about this.
Closing this PR in favor of #664
Fixes #657
Description of the Change
DRF 3.10 milestone has dropped the
@list_route
and@detail_route
decorators and replaced them with@action(detail=False)
or@action(detail=True)
which was added in DRF 3.8.This fix handles both
DRF<=3.7
and>=3.8
cases.Checklist
CHANGELOG.md
updated (only for user relevant changes)AUTHORS