django-rest-framework/docs/api-guide
Ryan Hiebert f2452936e9 Allow no queryset when get_queryset overridden
The user may wish to provide a dynamic queryset on a `RelatedField`
based on the `context`. The way to do that is to create a subclass of
`RelatedField` (or a child) and override the `get_queryset` method.
However, this is undocumented, and instantiating that field without a
`queryset` argument (because it's not needed) will raise an assertion
error.

Document `.get_queryset(self)` as an official part of the API of
`RelatedField`, and don't enforce the use of `queryset` when
`get_queryset` is overridden.
2015-11-05 17:34:02 -06:00
..
authentication.md Added django-rest-framework-social-oauth2 to list of third party packages 2015-10-02 14:30:27 -07:00
content-negotiation.md Use MkDocs meta.source to render source code links 2014-11-25 12:44:11 +00:00
exceptions.md Docs on exception handler context. Closes #2604. 2015-02-26 13:20:26 +00:00
fields.md Typo 2015-11-05 11:51:29 +01:00
filtering.md fix image paths 2015-11-02 15:28:02 +00:00
format-suffixes.md More cleanup of browser overrides 2015-09-28 15:33:55 +01:00
generic-views.md Note on ValidationError in perform_create. Closes #2791. 2015-07-27 13:32:30 +01:00
metadata.md More docs on configuring a custom metadata class. 2015-07-16 10:19:27 +01:00
pagination.md Fix typo 2015-08-24 21:09:08 +03:00
parsers.md Fix custom parser example 2015-07-05 16:48:33 -04:00
permissions.md Adding imports to docs 2015-08-06 09:56:09 +01:00
relations.md Allow no queryset when get_queryset overridden 2015-11-05 17:34:02 -06:00
renderers.md Docs on Forms API 2015-10-12 21:14:58 +01:00
requests.md Fix erronous request.files docs, and incorrect request.FILES behavior. Closes #3261. 2015-08-11 16:21:02 +01:00
responses.md Use MkDocs meta.source to render source code links 2014-11-25 12:44:11 +00:00
reverse.md Use MkDocs meta.source to render source code links 2014-11-25 12:44:11 +00:00
routers.md update info about wq.db.rest router 2015-05-05 13:38:14 -05:00
serializers.md Fix broken link caused by case sensitivity 2015-10-21 18:43:07 +07:00
settings.md More cleanup of browser overrides 2015-09-28 15:33:55 +01:00
status-codes.md Use MkDocs meta.source to render source code links 2014-11-25 12:44:11 +00:00
testing.md Fix testing example. Closes #3346 2015-08-28 13:52:18 +01:00
throttling.md Small doc typo throttles --> throttling 2015-10-01 14:25:04 +07:00
validators.md Fixed #2900 -- Made example validator class in docs inherit from object 2015-06-30 16:33:01 +01:00
versioning.md Update versioning.md 2015-10-12 10:10:08 +02:00
views.md @api_view defaults to allowing GET 2014-11-28 15:55:02 +00:00
viewsets.md Fixed minor typo on viewsets.md 2015-06-16 17:36:11 -03:00