diff options
author | luxagraf@c63593aa-01b0-44d9-8516-4b9c7e931d7f <luxagraf@c63593aa-01b0-44d9-8516-4b9c7e931d7f> | 2010-06-12 20:33:36 +0000 |
---|---|---|
committer | luxagraf@c63593aa-01b0-44d9-8516-4b9c7e931d7f <luxagraf@c63593aa-01b0-44d9-8516-4b9c7e931d7f> | 2010-06-12 20:33:36 +0000 |
commit | 6657ae24658383a9841450329a518327638651c0 (patch) | |
tree | 82e7fd81486a4b9154f58ed5ffe6ad48e4d8fbdb /apps/photos/views.py | |
parent | 865f8c58c8c29aaf431076bfffb4cfc4e8116b2d (diff) |
reorganized lib
Diffstat (limited to 'apps/photos/views.py')
-rw-r--r-- | apps/photos/views.py | 7 |
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) |