summaryrefslogtreecommitdiff
path: root/apps/photos/views.py
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2011-03-27 20:07:29 -0500
committerluxagraf <sng@luxagraf.net>2011-03-27 20:07:29 -0500
commitd0e4499b968834592bd211c0bfecd00aaa042e9a (patch)
tree0280fb65fc98e94c282e928b0a0f95e4c2009795 /apps/photos/views.py
parentcbad6ab096e23aea74c913fd37921652eca9728a (diff)
removed remain references to django tagging and replaced with taggit (faster, fewer db queries)
Diffstat (limited to 'apps/photos/views.py')
-rw-r--r--apps/photos/views.py6
1 files changed, 0 insertions, 6 deletions
diff --git a/apps/photos/views.py b/apps/photos/views.py
index a1e3459..5b993b4 100644
--- a/apps/photos/views.py
+++ b/apps/photos/views.py
@@ -5,14 +5,8 @@ from django.http import Http404,HttpResponse
from django.core import serializers
-from tagging.models import Tag,TaggedItem
from photos.models import Photo,PhotoGallery
from locations.models import Country, Region
-
-def potd_list(request):
- potd_obj = Tag.objects.filter(name__exact='potd')
- qs = TaggedItem.objects.get_by_model(Photo, potd_obj)
- return render_to_response('photos/photo-of-the-day.html', {'object_list': qs,})