summaryrefslogtreecommitdiff
path: root/django/forms/fields.py
diff options
context:
space:
mode:
authorMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2008-08-23 17:26:00 +0000
committerMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2008-08-23 17:26:00 +0000
commit3dd69a965b467a3085079a3628b18310a10f0261 (patch)
treed548d8456c39b1652b556d94f1f9dd1c966fc4f7 /django/forms/fields.py
parent943c28a4c661a76115012dbe1db3e98d7395f1f7 (diff)
Fixed #7244 -- Allow widget overriding in subclasses for ModelChoiceField,
ModelMultipleChoiceField and FilePathField. Patch from Sebastian Noack and Colin Grady. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8489 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/forms/fields.py')
-rw-r--r--django/forms/fields.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/forms/fields.py b/django/forms/fields.py
index 06feb65f30..5537cf66f9 100644
--- a/django/forms/fields.py
+++ b/django/forms/fields.py
@@ -773,7 +773,7 @@ class MultiValueField(Field):
class FilePathField(ChoiceField):
def __init__(self, path, match=None, recursive=False, required=True,
- widget=Select, label=None, initial=None, help_text=None,
+ widget=None, label=None, initial=None, help_text=None,
*args, **kwargs):
self.path, self.match, self.recursive = path, match, recursive
super(FilePathField, self).__init__(choices=(), required=required,