mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-02-17 03:51:03 +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)`
|
||||
|
||||
## 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.
|
||||
|
|
Loading…
Reference in New Issue
Block a user