categories = split_tags(related_tags)
del related_tags
- logging.info("Returning %d picutres and %d books" % (pictures.count(), books.count()))
- objects = SortedMultiQuerySet(pictures, books, order_by='sort_key_author')
+ logging.info("Returning %d picutres and %d books" % (pictures.count(), books.count()))
+ objects = SortedMultiQuerySet(pictures, books, order_by='sort_key_author')
only_author = len(tags) == 1 and tags[0].category == 'author'
objects = models.Book.objects.none()
-
return render_to_response('catalogue/tagged_object_list.html',
{
'object_list': objects,
def picture_detail(request, slug):
picture = get_object_or_404(Picture, slug=slug)
- theme_things = split_tags(picture.related_themes_things())
+ theme_things = split_tags(picture.related_themes())
# categories = SortedDict()
# for tag in picture.tags.iterator():