Added showing list of children books on book detail page.
[wolnelektury.git] / catalogue / utils.py
1 # -*- coding: utf-8 -*-
2
3
4 def split_tags(tags):
5     result = {}
6     for tag in tags:
7         result.setdefault(tag.category, []).append(tag)
8     return result
9