summaryrefslogtreecommitdiff
path: root/apps/photos/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'apps/photos/views.py')
-rw-r--r--apps/photos/views.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/apps/photos/views.py b/apps/photos/views.py
index 5ccec00..861f00e 100644
--- a/apps/photos/views.py
+++ b/apps/photos/views.py
@@ -5,7 +5,6 @@ from django.http import Http404,HttpResponse
from django.core import serializers
-from view_wrapper import luxagraf_render
from tagging.models import Tag,TaggedItem
from photos.models import Photo,PhotoGallery
from locations.models import Country, Region
@@ -24,8 +23,10 @@ def gallery_list(request,page):
return object_list(request, queryset=qs, template_name='archives/photos.html')
def gallery(request,slug):
- g = PhotoGallery.objects.get(set_slug=slug)
- return luxagraf_render(request,'details/photo_galleries.html', {'object': g,})
+ context = {
+ 'object': PhotoGallery.objects.get(set_slug=slug)
+ }
+ render_to_response('details/photo_galleries.html', context, context_instance = RequestContext(request))
def photo_json(request, slug):
p = PhotoGallery.objects.filter(set_slug=slug)