mirror of
https://github.com/django/django.git
synced 2025-10-24 22:26:08 +00:00
Fixed #14938 - Fixed save-as-new on inline formset with new forms.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@15306 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -690,10 +690,6 @@ class BaseInlineFormSet(BaseModelFormSet):
|
||||
return 0
|
||||
return super(BaseInlineFormSet, self).initial_form_count()
|
||||
|
||||
def total_form_count(self):
|
||||
if self.save_as_new:
|
||||
return super(BaseInlineFormSet, self).initial_form_count()
|
||||
return super(BaseInlineFormSet, self).total_form_count()
|
||||
|
||||
def _construct_form(self, i, **kwargs):
|
||||
form = super(BaseInlineFormSet, self)._construct_form(i, **kwargs)
|
||||
|
||||
Reference in New Issue
Block a user