diff options
| author | Stephan Groß | 2012-11-20 15:38:50 +0100 |
|---|---|---|
| committer | Stephan Groß | 2012-11-20 15:38:50 +0100 |
| commit | 86484668f689864aa54e127a8107bdee55240cea (patch) | |
| tree | 0704ed993643ab4487dafad6c7d9a2fa01589f26 /docs/api-guide/fields.md | |
| parent | 44e9749e36d31f811db7dc0998c7b8d1e35a784d (diff) | |
| download | django-rest-framework-86484668f689864aa54e127a8107bdee55240cea.tar.bz2 | |
added RegexField
Diffstat (limited to 'docs/api-guide/fields.md')
| -rw-r--r-- | docs/api-guide/fields.md | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/docs/api-guide/fields.md b/docs/api-guide/fields.md index 0485b158..cb30a52e 100644 --- a/docs/api-guide/fields.md +++ b/docs/api-guide/fields.md @@ -141,6 +141,16 @@ A text representation, validates the text to be a valid e-mail address. Corresponds to `django.db.models.fields.EmailField` +## RegexField + +A text representation, that validates the given value matches against a certain regular expression. + +Uses Django's `django.core.validators.RegexValidator` for validation. + +Corresponds to `django.forms.fields.RegexField` + +**Signature:** `RegexField(regex, max_length=None, min_length=None)` + ## DateField A date representation. |
