blob: 009d2a79d049b22d16b0f5938dce25c48c3ceb2f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
<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/
|