Fixed ugettext

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

View file

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