django-rest-framework/rest_framework/schemas
Carlton Gibson b1c6ea1240 Adjust schema get_filter_fields rules to match framework (#5454)
Closes #5237

Generics/ModelViewset performs filtering on: list, retrieve, put, patch and destroy (plus method equivalents).

i.e. on list plus anything that calls `get_object`.

This PR makes schema generation follow that.

It adds `AutoSchema._allows_filters()` which can be overridden in subclasses.

I’ve made this initially “private” so we can make quick changes if needs be in a 3.7.1 etc.
2017-09-27 09:13:10 +02:00
..
__init__.py allow custom authentication and permission classes for docs view 2017-09-25 16:17:25 +02:00
generators.py Allow schema = None. Deprecate exclude_from_schema (#5422) 2017-09-20 11:29:47 +02:00
inspectors.py Adjust schema get_filter_fields rules to match framework (#5454) 2017-09-27 09:13:10 +02:00
utils.py Refactor schema generation to allow per-view customisation (#5354) 2017-09-14 09:46:34 +01:00
views.py Allow schema = None. Deprecate exclude_from_schema (#5422) 2017-09-20 11:29:47 +02:00