Kaydet (Commit) d8db013e authored tarafından Malcolm Tredinnick's avatar Malcolm Tredinnick

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
üst 7e975bb6
......@@ -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 += '_'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment