diff options
| author | Tom Christie | 2012-11-16 14:54:16 -0800 |
|---|---|---|
| committer | Tom Christie | 2012-11-16 14:54:16 -0800 |
| commit | e801e21210da829b2c22f1cdd22ac1e1374515b7 (patch) | |
| tree | 6b98fae615ecf67930382860407ecf3c05ae4042 /docs/api-guide/fields.md | |
| parent | 19b0516bfefe3398683b4f878774e3dd80bf653a (diff) | |
| parent | 0076e2f462402dbb7bd7b3a446d2c397e6bf8d81 (diff) | |
| download | django-rest-framework-e801e21210da829b2c22f1cdd22ac1e1374515b7.tar.bz2 | |
Merge pull request #422 from markotibold/max_length_for_modelserializers
Max length for modelserializers
Diffstat (limited to 'docs/api-guide/fields.md')
| -rw-r--r-- | docs/api-guide/fields.md | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/docs/api-guide/fields.md b/docs/api-guide/fields.md index 7f42dc5e..d1c31ecc 100644 --- a/docs/api-guide/fields.md +++ b/docs/api-guide/fields.md @@ -131,6 +131,18 @@ or `django.db.models.fields.TextField`. **Signature:** `CharField(max_length=None, min_length=None)` +## URLField + +Corresponds to `django.db.models.fields.URLField`. Uses Django's `django.core.validators.URLValidator` for validation. + +**Signature:** `CharField(max_length=200, min_length=None)` + +## SlugField + +Corresponds to `django.db.models.fields.SlugField`. + +**Signature:** `CharField(max_length=50, min_length=None)` + ## ChoiceField A field that can accept a value out of a limited set of choices. |
