mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-10 19:56:59 +03:00
Tweak fields docs
This commit is contained in:
parent
0b08d25297
commit
9bc4aead65
|
@ -6,9 +6,13 @@
|
|||
>
|
||||
> — [The Zen of Python][cite]
|
||||
|
||||
Serializer fields handle converting between primative values and internal datatypes. They also deal with validating input values, as well as retrieving and setting the values from their parent objects.
|
||||
|
||||
---
|
||||
|
||||
**Note:** The serializer fields are declared in fields.py, but by convention you should import them using `from rest_framework import serializers` and refer to fields as `serializers.<FieldName>`.
|
||||
|
||||
Serializer fields handle converting between primative values and internal datatypes. They also deal with validating input values, as well as retrieving and setting the values from their parent objects.
|
||||
---
|
||||
|
||||
# Generic Fields
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user