aboutsummaryrefslogtreecommitdiffstats
path: root/docs/api-guide/fields.md
diff options
context:
space:
mode:
authorStephan Groß2012-11-21 03:00:02 -0800
committerStephan Groß2012-11-21 03:00:02 -0800
commit196fa5e94f5348dbb3873a5c87561416b16ea013 (patch)
tree36ef44691a8f8bf4b18e080c6e2e9c470198bdfc /docs/api-guide/fields.md
parent3268c67343f6fc6364a0127a7bfabeb907a4751d (diff)
parent03100168ff96dd4a09ee7c8a5a63b294abe99dfe (diff)
downloaddjango-rest-framework-196fa5e94f5348dbb3873a5c87561416b16ea013.tar.bz2
Merge pull request #436 from minddust/regex_field
added RegexField
Diffstat (limited to 'docs/api-guide/fields.md')
-rw-r--r--docs/api-guide/fields.md10
1 files changed, 10 insertions, 0 deletions
diff --git a/docs/api-guide/fields.md b/docs/api-guide/fields.md
index 914d0861..1d4c34cb 100644
--- a/docs/api-guide/fields.md
+++ b/docs/api-guide/fields.md
@@ -153,6 +153,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.