-# This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later.
-# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
+# This file is part of Wolne Lektury, licensed under GNU Affero GPLv3 or later.
+# Copyright © Fundacja Wolne Lektury. See NOTICE for more information.
#
from django.db import models, transaction
import catalogue.models
picture.title = str(picture_xml.picture_info.title)
picture.extra_info = json.dumps(picture_xml.picture_info.to_dict())
- picture_tags = set(catalogue.models.Tag.tags_from_info(picture_xml.picture_info))
+ picture_tags = set([t for (t, rel) in catalogue.models.Tag.tags_from_info(picture_xml.picture_info)])
for tag in picture_tags:
if not tag.for_pictures:
tag.for_pictures = True