mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-12-02 06:24:05 +03:00
44 lines
550 B
Markdown
44 lines
550 B
Markdown
<a class="github" href="fields.py"></a>
|
|
|
|
# Serializer fields
|
|
|
|
> Flat is better than nested.
|
|
>
|
|
> — [The Zen of Python][cite]
|
|
|
|
# Generic Fields
|
|
|
|
## Field
|
|
|
|
## ModelField
|
|
|
|
# Typed Fields
|
|
|
|
## BooleanField
|
|
|
|
## CharField
|
|
|
|
## EmailField
|
|
|
|
## DateField
|
|
|
|
## DateTimeField
|
|
|
|
## IntegerField
|
|
|
|
## FloatField
|
|
|
|
# Relational Fields
|
|
|
|
Relational fields are used to represent model relationships.
|
|
|
|
## PrimaryKeyRelatedField
|
|
|
|
## ManyPrimaryKeyRelatedField
|
|
|
|
## HyperlinkedRelatedField
|
|
|
|
## ManyHyperlinkedRelatedField
|
|
|
|
[cite]: http://www.python.org/dev/peps/pep-0020/
|