From 9aa6fa7cf6cb10103de9284e26db7e68b039a0b7 Mon Sep 17 00:00:00 2001 From: "luxagraf@c63593aa-01b0-44d9-8516-4b9c7e931d7f" Date: Sat, 13 Mar 2010 19:34:03 +0000 Subject: fixed photo importing tools --- apps/blog/views.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'apps/blog/views.py') diff --git a/apps/blog/views.py b/apps/blog/views.py index ef933eb..bd583df 100644 --- a/apps/blog/views.py +++ b/apps/blog/views.py @@ -7,6 +7,7 @@ from django.http import Http404 from blog.models import Entry, Topic from locations.models import Region, Country +from photos.models import Photo def home(request): featured = Entry.objects.filter(status__exact=1).latest() @@ -19,8 +20,8 @@ def home(request): def entry_detail(request, year, month, day, slug): obj = get_object_or_404(Entry, slug__exact=slug) photos = {} - if obj.photo_gallery: - photos = Photo.objects.filter(set__exact=obj.get().photo_gallery.id)[:9] + #if obj.photo_gallery: + # photos = Photo.objects.filter(set__exact=obj.get().photo_gallery.id)[:9] extra = {'photos':photos,} return render_to_response('details/entry.html', {'object': obj,'photos':photos}, context_instance=RequestContext(request)) -- cgit v1.2.3-70-g09d2