1
0
mirror of https://github.com/django/django.git synced 2025-07-04 17:59:13 +00:00

Fixed typo in formsets. Thanks Simon Litchfield.

git-svn-id: http://code.djangoproject.com/svn/django/branches/newforms-admin@6053 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Joseph Kocherhans 2007-09-07 02:39:18 +00:00
parent ff2a2884a1
commit f06b35376e

View File

@ -71,7 +71,7 @@ class BaseFormSet(object):
def _get_change_forms(self):
"""Return a list of all the change forms in this ``FormSet``."""
FormClass = self.form_class
if not hasattr(self, '_add_forms'):
if not hasattr(self, '_change_forms'):
change_forms = []
for i in range(0, self.change_form_count):
kwargs = {'auto_id': self.auto_id, 'prefix': self.add_prefix(i)}