From 0882d73ca1ba4c84ce24c946548c80d9e4d1c04e Mon Sep 17 00:00:00 2001 From: "luxagraf@c63593aa-01b0-44d9-8516-4b9c7e931d7f" Date: Sat, 30 Jan 2010 19:19:30 +0000 Subject: added topics to posts --- apps/photos/views.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'apps/photos/views.py') diff --git a/apps/photos/views.py b/apps/photos/views.py index 43591ca..5967333 100644 --- a/apps/photos/views.py +++ b/apps/photos/views.py @@ -3,6 +3,7 @@ from django.template import RequestContext from django.views.generic.list_detail import object_list from django.http import Http404 +from view_wrapper import luxagraf_render from tagging.models import Tag,TaggedItem from photos.models import Photo,PhotoGallery from locations.models import Country, Region @@ -20,6 +21,10 @@ def gallery_list(request,page): qs = PhotoGallery.objects.all().order_by('-id') 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,}) + """ Grabs entries by region or country -- cgit v1.2.3-70-g09d2