Fixed ugettext

This commit is contained in:
Martin Mahner 2019-05-16 09:38:03 +02:00
parent 0aef364f2a
commit 04a41a91f1

View file

@ -155,8 +155,10 @@ class SnippetRawView(SnippetDetailView):
def dispatch(self, request, *args, **kwargs):
if not config.RAW_MODE_ENABLED:
return HttpResponseForbidden(
ugettext(
'This dpaste installation has Raw view mode disabled.'
)
)
return super(SnippetRawView, self).dispatch(request, *args, **kwargs)
def render_to_response(self, context, **response_kwargs):