2 # -*- coding: utf-8 -*-
3 # This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later.
4 # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
6 from django.core.management import setup_environ
7 from wolnelektury import settings
10 setup_environ(settings)
12 from catalogue.models import Tag
27 for tag in Tag.objects.all():
28 if tag.category in ('epoch', 'genre', 'author', 'kind'):
30 elif tag.category == 'theme' and tag.name in MAIN_PAGE_THEMES: