Commits

ro...@localhost.localdomain  committed e48f415 Merge

merged

  • Participants
  • Parent commits 492686a, 74564fd

Comments (0)

Files changed (1)

File web/models.py

         return ' '.join([x.capitalize() for x in lst])
 
     def get_colour(self):
+        """if colour given for first tag, return it else return default grey"""
         lst = self.talk_tags.split()
         try:
             colour = Tag_Colour.objects.get(tag=lst[0].strip(',')).colour
             return colour
         except:
-            pass
+            colour = '#CCCCCC'
+            return colour
+            
 
 
     def _get_tags(self):