summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2017-09-28 07:18:35 -0700
committerluxagraf <sng@luxagraf.net>2017-09-28 07:18:35 -0700
commitbe3073fd769d79b62e2dc4a3b099213ef985e307 (patch)
tree8098a0110e4ba46c198685b327ec8d6ce272b7de
parente9eb2c612156894e87b9fa6584c1f8d05f932fe7 (diff)
fixed a bug with render_to_response
-rw-r--r--app/utils/views.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/utils/views.py b/app/utils/views.py
index fe0db4b..26253ff 100644
--- a/app/utils/views.py
+++ b/app/utils/views.py
@@ -1,7 +1,7 @@
from itertools import chain
from django.views.generic import ListView
from photos.models import LuxImage, LuxVideo
-from django.shortcuts import render_to_response
+from django.shortcuts import render
from django.template import RequestContext
class PaginatedListView(ListView):
@@ -33,7 +33,7 @@ def insert_image(request):
key=lambda instance: instance.pub_date,
reverse=True
)
- return render_to_response('admin/insert_images.html', {'object_list': object_list, 'textarea_id': request.GET['textarea']}, context_instance=RequestContext(request))
+ return render(request, 'admin/insert_images.html', {'object_list': object_list, 'textarea_id': request.GET['textarea']})
from taggit.models import Tag