Skip to content

Commit

Permalink
trco#236: added self.object to form.save()
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkVergunst committed Sep 17, 2024
1 parent 74a66e4 commit 0a0400c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bootstrap_modal_forms/mixins.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,10 @@ def form_valid(self, form):

if isAjaxRequest:
if asyncUpdate:
form.save()
self.object = form.save()
return HttpResponse(status=204)

form.save()
self.object = form.save()
messages.success(self.request, self.get_success_message())
return HttpResponseRedirect(self.get_success_url())

Expand Down

0 comments on commit 0a0400c

Please sign in to comment.