aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework/fields.py
diff options
context:
space:
mode:
authorTom Christie2012-12-06 14:58:18 -0800
committerTom Christie2012-12-06 14:58:18 -0800
commita463ddbb37edb725626b5b819266f3962bafc160 (patch)
tree48cdb73f72aacb8e90d9ba21387303f7852f36c2 /rest_framework/fields.py
parent26cfa023263576258e53fe23bc92e437398ff15f (diff)
parente044fa089b5ccdcc3557a65c106fad0f44f1b7b8 (diff)
downloaddjango-rest-framework-a463ddbb37edb725626b5b819266f3962bafc160.tar.bz2
Merge pull request #470 from minddust/fix-#469
fixed #469 - RegexField <--> BrowsableAPI Bug
Diffstat (limited to 'rest_framework/fields.py')
-rw-r--r--rest_framework/fields.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/rest_framework/fields.py b/rest_framework/fields.py
index ff39fac4..c28a9695 100644
--- a/rest_framework/fields.py
+++ b/rest_framework/fields.py
@@ -817,6 +817,7 @@ class EmailField(CharField):
class RegexField(CharField):
type_name = 'RegexField'
+ form_field_class = forms.RegexField
def __init__(self, regex, max_length=None, min_length=None, *args, **kwargs):
super(RegexField, self).__init__(max_length, min_length, *args, **kwargs)