-
Notifications
You must be signed in to change notification settings - Fork 771
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
Refactor backend filterset instantiation #865
Refactor backend filterset instantiation #865
Conversation
Side note - @carltongibson I've noticed for a while that the CI builds seem to run jobs one at a time, instead of the usual five concurrently. Have current jobs been disabled/limited in the settings? |
Codecov Report
@@ Coverage Diff @@
## master #865 +/- ##
==========================================
- Coverage 98.41% 97.87% -0.55%
==========================================
Files 15 15
Lines 1198 1128 -70
==========================================
- Hits 1179 1104 -75
- Misses 19 24 +5
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yea. OK. I could see subclassing the backend quickly next to the view.
Could you add notes to the docs?
Do you mean for the new methods? |
I meant for the new methods. (But yes...) (Build should be fixed BTW. I must have been on the mezcal.) |
Should This might be a good time to unify the DRF and Django view kwargs. The terminology is a little inconsistent, going between |
It's probably a good idea yes. And 2.0 is the time for that. Can we raise a warning (to be removed in 2.1)? |
Note: After #867 is merged, this need to be rebased to account for the method renames/deprecations. |
8155281
to
009b30f
Compare
Why didn't you pass the |
Possible compromise for #857. Right now, overriding the filterset is actually pretty inconvenient, because there is no hook into its instantiation aside from getting the class. To override the instance, it is necessary to completely overwrite both
filter_queryset
andto_html
.