Skip to content

Commit 6ffbf05

Browse files
authored
Merge pull request #31 from oxalorg/patch-1
response_change must return a response
2 parents 9965f80 + 696c5d1 commit 6ffbf05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/custom_button.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Then you can override :code:`response_change` and connect your template to the :
3838
obj.save()
3939
self.message_user(request, "This villain is now unique")
4040
return HttpResponseRedirect(".")
41-
super().response_change(request, obj)
41+
return super().response_change(request, obj)
4242

4343
This is how your admin looks now.
4444

0 commit comments

Comments
 (0)