Ticket #14940: use_arguments_on_save.diff
File use_arguments_on_save.diff, 580 bytes (added by , 14 years ago) |
---|
-
django/views/generic/edit.py
98 98 " a get_absolute_url method on the Model.") 99 99 return url 100 100 101 def form_valid(self, form ):102 self.object = form.save( )101 def form_valid(self, form, *args, **kwargs): 102 self.object = form.save(*args, **kwargs) 103 103 return super(ModelFormMixin, self).form_valid(form) 104 104 105 105 def form_invalid(self, form):