django-rest-framework/docs
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
..
api-guide Allow no queryset when get_queryset overridden 2015-11-05 17:34:02 -06:00
img Release notes etc 2015-10-22 14:05:52 +01:00
topics Release notes 2015-11-04 14:59:09 +00:00
tutorial append a space after the comment mark to remain consistent with the other parts of the tutorial 2015-09-13 20:24:22 +08:00
CNAME Include CNAME file 2014-11-25 16:01:32 +00:00
index.md Version 3.3.0 2015-10-28 11:32:15 +00:00