diff options
author | luxagraf@c63593aa-01b0-44d9-8516-4b9c7e931d7f <luxagraf@c63593aa-01b0-44d9-8516-4b9c7e931d7f> | 2010-01-30 19:19:30 +0000 |
---|---|---|
committer | luxagraf@c63593aa-01b0-44d9-8516-4b9c7e931d7f <luxagraf@c63593aa-01b0-44d9-8516-4b9c7e931d7f> | 2010-01-30 19:19:30 +0000 |
commit | 0882d73ca1ba4c84ce24c946548c80d9e4d1c04e (patch) | |
tree | 605e2284e175e80477fd7b6a6e9e2a2fcae94236 /apps/photos/views.py | |
parent | 7300519c054838511ba2584394620d0841b88e5f (diff) |
added topics to posts
Diffstat (limited to 'apps/photos/views.py')
-rw-r--r-- | apps/photos/views.py | 5 |
1 files changed, 5 insertions, 0 deletions
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 |