Permalink
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...
1 parent 7e975bb commit d8db013eea14e69222810deea9a7e290b99966b4 @malcolmt malcolmt committed May 19, 2007
Showing with 1 addition and 1 deletion.
  1. +1 −1 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 += '_'

0 comments on commit d8db013

Please sign in to comment.