From d7b9a4186724370a3ae64501e7fa5fd0878e7b96 Mon Sep 17 00:00:00 2001 From: luxagraf Date: Fri, 4 Dec 2020 12:25:42 -0500 Subject: fixed some very old code bugs in photos views --- app/media/views.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'app/media') 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) -- cgit v1.2.3-70-g09d2