Permalink
Browse files

self.tags fixes for views and feeds

  • Loading branch information...
1 parent 190bcc0 commit 7319d92e756fe88f8d07d88d29e7daf6e591a365 @ryanpitts ryanpitts committed Feb 18, 2013
Showing with 3 additions and 4 deletions.
  1. +1 −1 source/articles/views.py
  2. +1 −1 source/base/feeds.py
  3. +1 −2 source/code/views.py
View
@@ -77,8 +77,8 @@ class ArticleList(ListView):
def dispatch(self, *args, **kwargs):
self.section = kwargs.get('section', None)
self.category = kwargs.get('category', None)
- self.tags = []
self.tag_slugs = kwargs.get('tag_slugs', None)
+ self.tags = []
return super(ArticleList, self).dispatch(*args, **kwargs)
def get_queryset(self):
View
@@ -15,7 +15,7 @@ class ObjectWithTagsFeed(Feed):
def get_object(self, request, *args, **kwargs):
self.section = kwargs.get('section', None)
self.category = kwargs.get('category', None)
- self.tags = None
+ self.tags = []
self.tag_slugs = kwargs.get('tag_slugs', None)
self.tag_slug_list = []
if self.tag_slugs:
View
@@ -13,9 +13,8 @@ class CodeList(ListView):
def dispatch(self, *args, **kwargs):
self.render_json = kwargs.get('render_json', False)
- self.tags = []
self.tag_slugs = kwargs.get('tag_slugs', None)
- self.tag_slug_list = []
+ self.tags = []
return super(CodeList, self).dispatch(*args, **kwargs)
def get_queryset(self):

0 comments on commit 7319d92

Please sign in to comment.