Merge pull request #173 from Gluejar/fix_about_x

fix bad links from stupid robots [#49219467] -- looks good on my laptop
pull/1/head
Raymond Yee 2013-05-03 13:40:01 -07:00
commit 5356fdb7c4
1 changed files with 5 additions and 1 deletions

View File

@ -39,6 +39,7 @@ from django.forms.models import inlineformset_factory
from django.http import HttpResponseRedirect, Http404
from django.http import HttpResponse, HttpResponseNotFound
from django.shortcuts import render, render_to_response, get_object_or_404
from django.template import TemplateDoesNotExist
from django.template.loader import render_to_string
from django.utils.http import urlencode
from django.utils.translation import ugettext_lazy as _
@ -2348,7 +2349,10 @@ def download(request, work_id):
def about(request, facet):
template = "about_" + facet + ".html"
try:
return render(request, template)
except TemplateDoesNotExist:
return render(request, "about.html")
@login_required
@csrf_exempt