summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Kocherhans <joseph@jkocherhans.com>2007-09-07 02:39:18 +0000
committerJoseph Kocherhans <joseph@jkocherhans.com>2007-09-07 02:39:18 +0000
commitf06b35376e2d6d5bc1baa8c76f940ab40b4b530c (patch)
tree21960731c2c68e9fab3b7f565d5bb819a8e05878
parentff2a2884a15ddd23d7414497341905c56023abac (diff)
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
-rw-r--r--django/newforms/formsets.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/newforms/formsets.py b/django/newforms/formsets.py
index 3f4a387fca..c662f69931 100644
--- a/django/newforms/formsets.py
+++ b/django/newforms/formsets.py
@@ -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)}