tags = book.tags.filter(~Q(category__in=('set', 'theme')))
tags = [u'<a href="%s">%s</a>' % (tag.get_absolute_url(), tag.name) for tag in tags]
tags = book.tags.filter(~Q(category__in=('set', 'theme')))
tags = [u'<a href="%s">%s</a>' % (tag.get_absolute_url(), tag.name) for tag in tags]