summaryrefslogtreecommitdiff
path: root/apps/photos/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'apps/photos/models.py')
-rw-r--r--apps/photos/models.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/apps/photos/models.py b/apps/photos/models.py
index 5766e19..f13b17a 100644
--- a/apps/photos/models.py
+++ b/apps/photos/models.py
@@ -7,8 +7,7 @@ from django.utils.encoding import force_unicode
from django.conf import settings
-from tagging.fields import TagField
-from tagging.models import Tag
+from taggit.managers import TaggableManager
from locations.models import Location,Region
@@ -16,7 +15,7 @@ class Photo(models.Model):
description = models.TextField(blank=True, null=True)
title = models.CharField(blank=True, max_length=300)
pub_date = models.DateTimeField()
- tags = TagField()
+ tags = TaggableManager(blank=True)
exif_aperture = models.CharField(max_length=50, blank=True, null=True)
exif_make = models.CharField(max_length=50, blank=True, null=True)
exif_model = models.CharField(max_length=50, blank=True, null=True)
@@ -144,8 +143,6 @@ class Photo(models.Model):
def get_tumble_image(self):
return "%s/crops/%s/%s.jpg" %(settings.IMAGES_URL, self.pub_date.strftime("%Y/%b").lower(), self.id)
- def get_tags(self):
- return Tag.objects.get_for_object(self)
def get_previous_published(self):
return self.get_previous_by_pub_date()