summaryrefslogtreecommitdiff
path: root/django/forms/fields.py
diff options
context:
space:
mode:
Diffstat (limited to 'django/forms/fields.py')
-rw-r--r--django/forms/fields.py13
1 files changed, 8 insertions, 5 deletions
diff --git a/django/forms/fields.py b/django/forms/fields.py
index 3ad362b9b8..c6704883a3 100644
--- a/django/forms/fields.py
+++ b/django/forms/fields.py
@@ -775,8 +775,10 @@ class ChoiceField(Field):
def __init__(self, choices=(), required=True, widget=None, label=None,
initial=None, help_text='', *args, **kwargs):
- super(ChoiceField, self).__init__(required=required, widget=widget, label=label,
- initial=initial, help_text=help_text, *args, **kwargs)
+ super(ChoiceField, self).__init__(
+ required=required, widget=widget, label=label, initial=initial,
+ help_text=help_text, *args, **kwargs
+ )
self.choices = choices
def __deepcopy__(self, memo):
@@ -1090,9 +1092,10 @@ class FilePathField(ChoiceField):
initial=None, help_text='', *args, **kwargs):
self.path, self.match, self.recursive = path, match, recursive
self.allow_files, self.allow_folders = allow_files, allow_folders
- super(FilePathField, self).__init__(choices=(), required=required,
- widget=widget, label=label, initial=initial, help_text=help_text,
- *args, **kwargs)
+ super(FilePathField, self).__init__(
+ choices=(), required=required, widget=widget, label=label,
+ initial=initial, help_text=help_text, *args, **kwargs
+ )
if self.required:
self.choices = []