Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Removed unusable parameters to empty_form property

  • Loading branch information...
commit 884f77bd15f051224cdd8de63597db05ff3d7f43 1 parent 33f8afd
@claudep claudep authored
Showing with 6 additions and 8 deletions.
  1. +6 −8 django/forms/formsets.py
View
14 django/forms/formsets.py
@@ -157,14 +157,12 @@ def extra_forms(self):
return self.forms[self.initial_form_count():]
@property
- def empty_form(self, **kwargs):
- defaults = {
- 'auto_id': self.auto_id,
- 'prefix': self.add_prefix('__prefix__'),
- 'empty_permitted': True,
- }
- defaults.update(kwargs)
- form = self.form(**defaults)
+ def empty_form(self):
+ form = self.form(
+ auto_id=self.auto_id,
+ prefix=self.add_prefix('__prefix__'),
+ empty_permitted=True,
+ )
self.add_fields(form, None)
return form
Please sign in to comment.
Something went wrong with that request. Please try again.