diff options
Diffstat (limited to 'apps/blog/models.py')
-rw-r--r-- | apps/blog/models.py | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/apps/blog/models.py b/apps/blog/models.py index 9995bc1..65c0149 100644 --- a/apps/blog/models.py +++ b/apps/blog/models.py @@ -7,8 +7,6 @@ from django.template.defaultfilters import truncatewords_html from utils import markdown2 as markdown -from tagging.fields import TagField -from tagging.models import Tag from photos.models import PhotoGallery from locations.models import Location,Region @@ -69,7 +67,6 @@ class Entry(models.Model): body_markdown = models.TextField() dek = models.TextField(null=True,blank=True) pub_date = models.DateTimeField('Date published') - tags = TagField() enable_comments = models.BooleanField(default=True) point = models.PointField(null=True) location = models.ForeignKey(Location, null=True) @@ -109,8 +106,6 @@ class Entry(models.Model): def get_next_published(self): return self.get_next_by_pub_date(status__exact=1) - def get_tags(self): - return Tag.objects.get_for_object(self) def comment_period_open(self): return self.enable_comments and datetime.datetime.today() - datetime.timedelta(30) <= self.pub_date |