Skip to content
This repository
Browse code

Merge pull request #154 from ryanpitts/development

fix self.tags error on CodeFeed
  • Loading branch information...
commit ba01f4586f933c16d4c722b3adcc714a781fe472 2 parents a2e0794 + 186ffa5
Ryan Pitts authored March 05, 2013

Showing 1 changed file with 3 additions and 2 deletions. Show diff stats Hide diff stats

  1. 5  source/base/feeds.py
5  source/base/feeds.py
@@ -82,7 +82,7 @@ def items(self, obj):
82 82
 class CodeFeed(ObjectWithTagsFeed):
83 83
     def title(self, obj):
84 84
         identifier = ""
85  
-        if self.tags:
  85
+        if self.tag_slugs:
86 86
             identifier = " tagged '%s'" % "+".join([tag.name for tag in self.tags])
87 87
         return "Source: Code%s" % identifier
88 88
 
@@ -105,6 +105,7 @@ def item_description(self, item):
105 105
 
106 106
     def items(self, obj):
107 107
         queryset = Code.live_objects.order_by('-created')
108  
-        queryset = get_tag_filtered_queryset(queryset, self.tag_slug_list)
  108
+        if self.tag_slugs:
  109
+            queryset = get_tag_filtered_queryset(queryset, self.tag_slug_list)
109 110
         return queryset[:20]
110 111
 

0 notes on commit ba01f45

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