From 15db522ddbcf731d6c29c43a48a2ab10e459576d Mon Sep 17 00:00:00 2001 From: Remco Wendt Date: Thu, 17 Mar 2011 01:13:02 +0100 Subject: [PATCH] Fixed small bug --- blog/models.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/blog/models.py b/blog/models.py index 139b2cf..51e0324 100644 --- a/blog/models.py +++ b/blog/models.py @@ -24,23 +24,23 @@ class Post(DateAwareModel): body_markdown = models.TextField('Body', blank=False, help_text = "Use markdown syntax") body = models.TextField('Body', blank=True) objects = PublicManager() - + class Meta: ordering = ('-publish_date',) unique_together = ('publish_date', 'slug') verbose_name = 'Blog Post' get_latest_by = 'publish_date' - + def __unicode__(self): return self.title - + def save(self, *args, **kwargs): self.body = unicode(smartyPants(markdown(self.body_markdown))) super(Post, self).save(*args, **kwargs) - + @permalink def get_absolute_url(self): - return('blogpost_detail', (), { + return('blog:blogpost_detail', (), { 'year': self.publish_date.year, 'month': self.publish_date.month, 'day': self.publish_date.day,