django-rest-framework/docs/api-guide
Carlton Gibson a0cdba6277
Extract method for manual_fields processing (#5633)
* Extract method for `manual_fields` processing

Allows reuse of logic to replace Field instances in a field list by `Field.name`.

Adds a utility function for the logic plus a wrapper method on `AutoSchema`.

Closes #5632

* Manual fields suggestions (#2)

* Use OrderedDict in inspectors

* Move empty check to 'update_fields()'

* Make 'update_fields()' an AutoSchema staticmethod

* Add 'AutoSchema.get_manual_fields()'

* Conform '.get_manual_fields()' to other methods

* Add test for update_fields

* Make sure `manual_fields` is a list.

(As documented to be)

* Add docs for new AutoSchema methods.

* `get_manual_fields`
* `update_fields`

* Add release notes for PR.
2017-12-04 09:07:43 +01:00
..
authentication.md Fix AttributeError hiding on request authenticators (#5600) 2017-11-23 08:58:04 +01:00
caching.md Clean up all whitespace throughout project (#5578) 2017-11-09 20:57:53 +01:00
content-negotiation.md Replace "class based views" occurrences with "class-based views" (#4251) 2016-07-08 08:38:50 +01:00
exceptions.md Link broken 2017-06-23 08:09:10 +01:00
fields.md Add allow_null serialization output note (#5641) 2017-12-01 10:07:33 +01:00
filtering.md Update link to documentation 2017-11-03 15:49:21 +01:00
format-suffixes.md Replace "class based views" occurrences with "class-based views" (#4251) 2016-07-08 08:38:50 +01:00
generic-views.md Clean up all whitespace throughout project (#5578) 2017-11-09 20:57:53 +01:00
metadata.md Fix some typos in documentation 2017-01-08 15:34:52 +02:00
pagination.md Add note on not using floats with CursorPagination (#5459) 2017-09-27 12:23:54 +02:00
parsers.md Add import to example in api-guide/parsers (#5547) 2017-10-30 17:11:54 +01:00
permissions.md Clean up all whitespace throughout project (#5578) 2017-11-09 20:57:53 +01:00
relations.md Documentation update (#4717) 2016-11-30 12:58:34 +00:00
renderers.md Add additional link to HTML & Forms topic page (#4726) 2016-12-01 09:11:25 +00:00
requests.md Fix AttributeError hiding on request authenticators (#5600) 2017-11-23 08:58:04 +01:00
responses.md Fix doc Response data attribute description 2017-08-23 21:30:56 -05:00
reverse.md Documentation update (#4717) 2016-11-30 12:58:34 +00:00
routers.md Clean up all whitespace throughout project (#5578) 2017-11-09 20:57:53 +01:00
schemas.md Extract method for manual_fields processing (#5633) 2017-12-04 09:07:43 +01:00
serializers.md Fix in documentation (#5612) 2017-11-20 09:08:16 +01:00
settings.md Add 'STRICT_JSON' docs 2017-09-25 09:08:20 +02:00
status-codes.md Make status_code documentation more readable. (#5400) 2017-09-08 16:53:17 +01:00
testing.md Add note on force_authenticate + refresh_from_db 2017-09-25 11:14:36 +02:00
throttling.md Fix throttling documentation about Remote-Addr (#5414) 2017-09-12 12:08:32 +01:00
validators.md Clean up all whitespace throughout project (#5578) 2017-11-09 20:57:53 +01:00
versioning.md Fix handling of ALLOWED_VERSIONS and no DEFAULT_VERSION (#4370) 2016-08-10 15:19:56 +01:00
views.md Allow schema = None. Deprecate exclude_from_schema (#5422) 2017-09-20 11:29:47 +02:00
viewsets.md Non model Viewset requires base_name when registering to router. 2017-05-19 23:35:25 +02:00