mirror of
https://github.com/django/django.git
synced 2025-07-04 09:49:12 +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:
parent
bc80d9cfd8
commit
3bdc14818f
@ -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 = []
|
||||||
|
Loading…
x
Reference in New Issue
Block a user