From 94f98261589e880ef15d17809112c0615d57b983 Mon Sep 17 00:00:00 2001 From: Joseph Spiros Date: Sat, 3 Jul 2010 09:08:45 -0400 Subject: [PATCH] Adding __unicode__ to BlogViews. --- contrib/penfield/models.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/contrib/penfield/models.py b/contrib/penfield/models.py index 8d7e3ff..e0b7218 100644 --- a/contrib/penfield/models.py +++ b/contrib/penfield/models.py @@ -53,6 +53,9 @@ class BlogView(MultiView): entry_permalink_base = models.CharField(max_length=255, blank=False, default='entries') tag_permalink_base = models.CharField(max_length=255, blank=False, default='tags') + def __unicode__(self): + return u'BlogView for %s' % self.blog.title + @property def urlpatterns(self): base_patterns = patterns('', -- 2.20.1