diff options
| author | Tom Christie | 2012-10-15 04:50:28 -0700 |
|---|---|---|
| committer | Tom Christie | 2012-10-15 04:50:28 -0700 |
| commit | e88ca9637bd4f49659dd80ca7afd0f38adf07746 (patch) | |
| tree | 2cf1ca191bd1136664e12ac898eb8ebe67410b32 /docs | |
| parent | 41dd63b3b0abcb615768fe2774cbdf10b9ba1cf0 (diff) | |
| parent | c94272650915eef368cdc5d157644884c3eecccb (diff) | |
| download | django-rest-framework-e88ca9637bd4f49659dd80ca7afd0f38adf07746.tar.bz2 | |
Merge pull request #295 from ulmus/restframework2
Added TextField to serializer
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/api-guide/fields.md | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/docs/api-guide/fields.md b/docs/api-guide/fields.md index df54ea02..dc9ab045 100644 --- a/docs/api-guide/fields.md +++ b/docs/api-guide/fields.md @@ -73,18 +73,35 @@ These fields represent basic datatypes, and support both reading and writing val ## BooleanField +A Boolean representation, corresponds to `django.db.models.fields.BooleanField`. + ## CharField +A text representation, optionally validates the text to be shorter than `max_length` and longer than `min_length`, corresponds to `django.db.models.fields.CharField` +or `django.db.models.fields.TextField`. + +**Signature:** `CharField([max_length=<Integer>[, min_length=<Integer>]])` + ## EmailField +A text representation, validates the text to be a valid e-mail adress. Corresponds to `django.db.models.fields.EmailField` + ## DateField +A date representation. Corresponds to `django.db.models.fields.DateField` + ## DateTimeField +A date and time representation. Corresponds to `django.db.models.fields.DateTimeField` + ## IntegerField +An integer representation. Corresponds to `django.db.models.fields.IntegerField`, `django.db.models.fields.SmallIntegerField`, `django.db.models.fields.PositiveIntegerField` and `django.db.models.fields.PositiveSmallIntegerField` + ## FloatField +A floating point representation. Corresponds to `django.db.models.fields.FloatField`. + --- # Relational Fields |
