Merge branch 'api'
authorJan Szejko <janek37@gmail.com>
Thu, 14 Dec 2017 08:43:33 +0000 (09:43 +0100)
committerJan Szejko <janek37@gmail.com>
Thu, 14 Dec 2017 08:43:33 +0000 (09:43 +0100)
1  2 
src/catalogue/models/book.py

@@@ -119,11 -122,8 +122,11 @@@ class Book(models.Model)
          else:
              return ', '.join(self.tags.filter(category=category).values_list('name', flat=True))
  
 +    def tags_by_category(self):
 +        return split_tags(self.tags.exclude(category__in=('set', 'theme')))
 +
      def author_unicode(self):
-         return self.tag_unicode('author')
+         return self.cached_author
  
      def translator(self):
          translators = self.extra_info.get('translators')