diff options
author | luxagraf <sng@luxagraf.net> | 2020-12-04 12:25:42 -0500 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2020-12-04 12:25:42 -0500 |
commit | d7b9a4186724370a3ae64501e7fa5fd0878e7b96 (patch) | |
tree | ac9165eca09451508cf535da27dc4cd5376ae723 | |
parent | 7799aac07271e8a5f05fabd47993a9f64b42042e (diff) |
fixed some very old code bugs in photos views
-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) |