summaryrefslogtreecommitdiff
path: root/django/forms
diff options
context:
space:
mode:
Diffstat (limited to 'django/forms')
-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 9cc93a46e1..a977256525 100644
--- a/django/forms/fields.py
+++ b/django/forms/fields.py
@@ -1113,7 +1113,7 @@ class FilePathField(ChoiceField):
(self.allow_folders and f.is_dir())) and
(self.match is None or self.match_re.search(f.name))):
choices.append((f.path, f.name))
- choices.sort(key=operator.itemgetter(1))
+ choices.sort(key=operator.itemgetter(1))
self.choices.extend(choices)
self.widget.choices = self.choices