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

newforms-admin: Corrected small error in _get_add_forms() docstring

git-svn-id: http://code.djangoproject.com/svn/django/branches/newforms-admin@5577 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Adrian Holovaty 2007-07-01 04:42:46 +00:00
parent bc80d9cfd8
commit 3bdc14818f

View File

@ -48,7 +48,7 @@ class BaseFormSet(object):
self.management_form = ManagementForm(initial={FORM_COUNT_FIELD_NAME: self.total_forms}, auto_id=self.auto_id, prefix=self.prefix) self.management_form = ManagementForm(initial={FORM_COUNT_FIELD_NAME: self.total_forms}, auto_id=self.auto_id, prefix=self.prefix)
def _get_add_forms(self): def _get_add_forms(self):
"""Return a list of all the change forms in this ``FormSet``.""" """Return a list of all the add forms in this ``FormSet``."""
Form = self.form_class Form = self.form_class
if not hasattr(self, '_add_forms'): if not hasattr(self, '_add_forms'):
add_forms = [] add_forms = []