From d0e4499b968834592bd211c0bfecd00aaa042e9a Mon Sep 17 00:00:00 2001 From: luxagraf Date: Sun, 27 Mar 2011 20:07:29 -0500 Subject: removed remain references to django tagging and replaced with taggit (faster, fewer db queries) --- apps/photos/views.py | 6 ------ 1 file changed, 6 deletions(-) (limited to 'apps/photos/views.py') 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,}) -- cgit v1.2.3-70-g09d2