From 2f7b3e87ff28392c872a0e828224d0b781297041 Mon Sep 17 00:00:00 2001 From: Stephen Burrows Date: Fri, 18 Feb 2011 13:47:05 -0500 Subject: [PATCH] Minor correction to BlogView.urlpatterns. --- contrib/penfield/models.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/contrib/penfield/models.py b/contrib/penfield/models.py index 065d033..98dcdd5 100644 --- a/contrib/penfield/models.py +++ b/contrib/penfield/models.py @@ -383,10 +383,8 @@ class BlogView(FeedView): @property def urlpatterns(self): - urlpatterns = self.feed_patterns(r'^', 'get_all_entries', 'index_page', 'index') - - if self.feeds_enabled: - urlpatterns += self.feed_patterns(r'^%s/(?P[-\w]+[-+/\w]*)$' % self.tag_permalink_base, 'get_entries_by_tag', 'tag_page', 'get_entries_by_tag') + urlpatterns = self.feed_patterns(r'^', 'get_all_entries', 'index_page', 'index') +\ + self.feed_patterns(r'^%s/(?P[-\w]+[-+/\w]*)$' % self.tag_permalink_base, 'get_entries_by_tag', 'tag_page', 'entries_by_tag') if self.tag_archive_page: urlpatterns += patterns('', -- 2.20.1