summaryrefslogtreecommitdiff
path: root/apps/blog/views.py
diff options
context:
space:
mode:
authorluxagraf@c63593aa-01b0-44d9-8516-4b9c7e931d7f <luxagraf@c63593aa-01b0-44d9-8516-4b9c7e931d7f>2010-03-13 19:34:03 +0000
committerluxagraf@c63593aa-01b0-44d9-8516-4b9c7e931d7f <luxagraf@c63593aa-01b0-44d9-8516-4b9c7e931d7f>2010-03-13 19:34:03 +0000
commit9aa6fa7cf6cb10103de9284e26db7e68b039a0b7 (patch)
tree6c89094d3ff8ed036d0e91173c2b23826b50e642 /apps/blog/views.py
parent9dcc9b71adc118abb1f3191bd9753c9e97c839cb (diff)
fixed photo importing tools
Diffstat (limited to 'apps/blog/views.py')
-rw-r--r--apps/blog/views.py5
1 files changed, 3 insertions, 2 deletions
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))