django-rest-framework/docs
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
..
api-guide Extract method for manual_fields processing (#5633) 2017-12-04 09:07:43 +01:00
img New logo (#5497) 2017-10-13 14:35:53 +01:00
topics Extract method for manual_fields processing (#5633) 2017-12-04 09:07:43 +01:00
tutorial Update tutorial (#5622) 2017-11-27 11:34:17 +01:00
CNAME Include CNAME file 2014-11-25 16:01:32 +00:00
index.md Remove references to unsupported Django versions in docs and code (#5602) 2017-11-20 09:35:54 +01:00