JayBazuzi/localwiki — comment on commit a894596efabcd27883dc17a826a0d4116712d9f3
File: sapling/utils/views.py line 111
By philipn:

Definitely an improvement! I wonder how hard it'd be to get the message to render in the normal site template rather than just as plain text.

Maybe it could do something like (similar to what pages.views.PageRenameView is doing):

messages.add_message(self.request, messages.ERROR, self.forbidden_message_anonymous)
return HttpResponseForbidden(self.get_success_url())