diff options
Diffstat (limited to 'app/media/views.py')
-rw-r--r-- | app/media/views.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/media/views.py b/app/media/views.py index fdd3c22..de84f7f 100644 --- a/app/media/views.py +++ b/app/media/views.py @@ -1,5 +1,5 @@ import json -from django.shortcuts import render_to_response, render +from django.shortcuts import render from django.template import RequestContext from django.http import Http404, HttpResponse from django.core import serializers @@ -84,7 +84,7 @@ def gallery(request, slug): context = { 'object': PhotoGallery.objects.get(set_slug=slug) } - return render_to_response('details/photo_galleries.html', context, context_instance=RequestContext(request)) + return render(request, 'details/photo_galleries.html', context) def photo_json(request, slug): @@ -127,4 +127,4 @@ def gallery_list_by_area(request, slug, page): 'region': region, 'page': page } - return render_to_response("archives/photos.html", context, context_instance=RequestContext(request)) + return render(request, "archives/photos.html", context) |