Skip to content
Browse files

fix self.tags error on CodeFeed

  • Loading branch information...
1 parent 5296c0d commit 186ffa51f93a0db1a5027ee291a9bcf67afa97d8 @ryanpitts ryanpitts committed Mar 5, 2013
Showing with 3 additions and 2 deletions.
  1. +3 −2 source/base/feeds.py
View
5 source/base/feeds.py
@@ -82,7 +82,7 @@ def items(self, obj):
class CodeFeed(ObjectWithTagsFeed):
def title(self, obj):
identifier = ""
- if self.tags:
+ if self.tag_slugs:
identifier = " tagged '%s'" % "+".join([tag.name for tag in self.tags])
return "Source: Code%s" % identifier
@@ -105,6 +105,7 @@ def item_description(self, item):
def items(self, obj):
queryset = Code.live_objects.order_by('-created')
- queryset = get_tag_filtered_queryset(queryset, self.tag_slug_list)
+ if self.tag_slugs:
+ queryset = get_tag_filtered_queryset(queryset, self.tag_slug_list)
return queryset[:20]

0 comments on commit 186ffa5

Please sign in to comment.
Something went wrong with that request. Please try again.