summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2007-05-19 18:54:35 +0000
committerMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2007-05-19 18:54:35 +0000
commitd8db013eea14e69222810deea9a7e290b99966b4 (patch)
tree4b2c85a1cd09920f2cac7cad3526a1814943535f
parent7e975bb636289d9115373de8b9d6f99e26f9558b (diff)
Fixed #4330 -- Fixed typo when retrieving field names. Patch from Marc Fargas.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5293 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r--django/contrib/formtools/preview.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/contrib/formtools/preview.py b/django/contrib/formtools/preview.py
index 351d991762..dcb58e85d8 100644
--- a/django/contrib/formtools/preview.py
+++ b/django/contrib/formtools/preview.py
@@ -83,7 +83,7 @@ class FormPreview(object):
"""
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 += '_'