diff options
author | luxagraf <sng@luxagraf.net> | 2011-03-27 20:07:29 -0500 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2011-03-27 20:07:29 -0500 |
commit | d0e4499b968834592bd211c0bfecd00aaa042e9a (patch) | |
tree | 0280fb65fc98e94c282e928b0a0f95e4c2009795 /apps/photos/views.py | |
parent | cbad6ab096e23aea74c913fd37921652eca9728a (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.py | 6 |
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,}) |