Ticket #14940: use_arguments_on_save.diff

File use_arguments_on_save.diff, 580 bytes (added by Mario César, 14 years ago)
  • django/views/generic/edit.py

     
    9898                    " a get_absolute_url method on the Model.")
    9999        return url
    100100
    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)
    103103        return super(ModelFormMixin, self).form_valid(form)
    104104
    105105    def form_invalid(self, form):
Back to Top