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