Skip to content

Commit

Permalink
Merge pull request #31 from oxalorg/patch-1
Browse files Browse the repository at this point in the history
response_change must return a response
  • Loading branch information
shabda committed Mar 21, 2018
2 parents 9965f80 + 696c5d1 commit 6ffbf05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/custom_button.rst
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Then you can override :code:`response_change` and connect your template to the :
obj.save()
self.message_user(request, "This villain is now unique")
return HttpResponseRedirect(".")
super().response_change(request, obj)
return super().response_change(request, obj)

This is how your admin looks now.

Expand Down

0 comments on commit 6ffbf05

Please sign in to comment.