Skip to content

Commit

Permalink
fixed getting success message in POST views
Browse files Browse the repository at this point in the history
  • Loading branch information
d.choban committed Feb 28, 2018
1 parent d32327f commit 0530abf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arctic/mixins.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def post(self, *args, **kwargs):
response = super(SuccessMessageMixin, self).post(*args, **kwargs)
if not getattr(self, 'form_class', None):
# assume this is DeleteView without form
success_message = self.get_success_message(None)
success_message = self.get_success_message({})
if success_message:
messages.success(self.request, success_message)
return response
Expand Down

0 comments on commit 0530abf

Please sign in to comment.