- for category in ('author', 'epoch', 'genre', 'kind'):
- try:
- ctx[category] = Tag.objects.filter(category=category).order_by('?')[:1][0]
- except IndexError:
- pass
+ # for category in ('author', 'epoch', 'genre', 'kind'):
+ # try:
+ # ctx[category] = Tag.objects.filter(category=category).order_by('?')[:1][0]
+ # except IndexError:
+ # pass