Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Removed unusable parameters to empty_form property

  • Loading branch information...
commit 884f77bd15f051224cdd8de63597db05ff3d7f43 1 parent 33f8afd
Claude Paroz authored January 01, 2013

Showing 1 changed file with 6 additions and 8 deletions. Show diff stats Hide diff stats

  1. 14  django/forms/formsets.py
14  django/forms/formsets.py
@@ -157,14 +157,12 @@ def extra_forms(self):
157 157
         return self.forms[self.initial_form_count():]
158 158
 
159 159
     @property
160  
-    def empty_form(self, **kwargs):
161  
-        defaults = {
162  
-            'auto_id': self.auto_id,
163  
-            'prefix': self.add_prefix('__prefix__'),
164  
-            'empty_permitted': True,
165  
-        }
166  
-        defaults.update(kwargs)
167  
-        form = self.form(**defaults)
  160
+    def empty_form(self):
  161
+        form = self.form(
  162
+            auto_id=self.auto_id,
  163
+            prefix=self.add_prefix('__prefix__'),
  164
+            empty_permitted=True,
  165
+        )
168 166
         self.add_fields(form, None)
169 167
         return form
170 168
 

0 notes on commit 884f77b

Please sign in to comment.
Something went wrong with that request. Please try again.