mirror of
https://github.com/DarrenOfficial/dpaste.git
synced 2024-11-23 11:56:36 +11:00
Fixed ugettext
This commit is contained in:
parent
0aef364f2a
commit
04a41a91f1
1 changed files with 3 additions and 1 deletions
|
@ -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)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue