Skip to content

Commit

Permalink
Merge pull request #26 from nahash/patch-1
Browse files Browse the repository at this point in the history
Update custom_button.rst
  • Loading branch information
shabda committed Mar 5, 2018
2 parents abfb7c2 + f3483dc commit 34f87c0
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 @@ -34,7 +34,7 @@ Then you can override :code:`response_change` and connect your template to the :
if "_make-unique" in request.POST:
matching_names_except_this = self.get_queryset(request).filter(name=obj.name).exclude(pk=obj.id)
matching_names_except_this.delete()
obj.is_umique = True
obj.is_unique = True
obj.save()
self.message_user(request, "This villain is now unique")
return HttpResponseRedirect(".")
Expand Down

0 comments on commit 34f87c0

Please sign in to comment.