Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed #4330 -- Fixed typo when retrieving field names. Patch from Mar…

…c Fargas.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@5293 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit d8db013eea14e69222810deea9a7e290b99966b4 1 parent 7e975bb
@malcolmt malcolmt authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/contrib/formtools/preview.py
View
2  django/contrib/formtools/preview.py
@@ -83,7 +83,7 @@ def unused_name(self, name):
"""
while 1:
try:
- f = self.form.fields[name]
+ f = self.form.base_fields[name]
except KeyError:
break # This field name isn't being used by the form.
name += '_'
Please sign in to comment.
Something went wrong with that request. Please try again.