mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-09-21 03:19:00 +03:00
Added brief docs for URLField and SlugField.
This commit is contained in:
parent
1a436dd6d9
commit
0076e2f462
|
@ -131,6 +131,18 @@ or `django.db.models.fields.TextField`.
|
||||||
|
|
||||||
**Signature:** `CharField(max_length=None, min_length=None)`
|
**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
|
## ChoiceField
|
||||||
|
|
||||||
A field that can accept a value out of a limited set of choices.
|
A field that can accept a value out of a limited set of choices.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user