mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-02-03 05:04:31 +03:00
Tweak DRF compound fields docs
This commit is contained in:
parent
57b0e84bdd
commit
dddbff5931
|
@ -347,16 +347,15 @@ As an example, let's create a field that can be used represent the class name of
|
||||||
"""
|
"""
|
||||||
return obj.__class__
|
return obj.__class__
|
||||||
|
|
||||||
# More fields from 3rd-party packages
|
# Third party packages
|
||||||
|
|
||||||
## [drf-compound-fields](http://drf-compound-fields.readthedocs.org)
|
## DRF Compound Fields
|
||||||
|
|
||||||
Provides "compound" serializer fields, such as lists of simple values, which can be described by
|
The [drf-compound-fields][drf-compound-fields] package provides "compound" serializer fields, such as lists of simple values, which can be described by other fields rather than serializers with the `many=True` option. Also provided are fields for typed dictionaries and values that can be either a specific type or a list of items of that type.
|
||||||
other fields rather than serializers with the `many=True` option. Also provided are fields for
|
|
||||||
typed dictionaries and values that can be either a specific type or a list of items of that type.
|
|
||||||
|
|
||||||
[cite]: https://docs.djangoproject.com/en/dev/ref/forms/api/#django.forms.Form.cleaned_data
|
[cite]: https://docs.djangoproject.com/en/dev/ref/forms/api/#django.forms.Form.cleaned_data
|
||||||
[FILE_UPLOAD_HANDLERS]: https://docs.djangoproject.com/en/dev/ref/settings/#std:setting-FILE_UPLOAD_HANDLERS
|
[FILE_UPLOAD_HANDLERS]: https://docs.djangoproject.com/en/dev/ref/settings/#std:setting-FILE_UPLOAD_HANDLERS
|
||||||
[ecma262]: http://ecma-international.org/ecma-262/5.1/#sec-15.9.1.15
|
[ecma262]: http://ecma-international.org/ecma-262/5.1/#sec-15.9.1.15
|
||||||
[strftime]: http://docs.python.org/2/library/datetime.html#strftime-and-strptime-behavior
|
[strftime]: http://docs.python.org/2/library/datetime.html#strftime-and-strptime-behavior
|
||||||
[iso8601]: http://www.w3.org/TR/NOTE-datetime
|
[iso8601]: http://www.w3.org/TR/NOTE-datetime
|
||||||
|
[drf-compound-fields]: http://drf-compound-fields.readthedocs.org
|
||||||
|
|
Loading…
Reference in New Issue
Block a user