X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/ff382f6c37063c0c4c5d21c2834a8759e25c5d02..3deefcf48d775eb7d4cb1a41a51b8ff501f108ed:/src/api/handlers.py diff --git a/src/api/handlers.py b/src/api/handlers.py index d08812f41..292fdb2a9 100644 --- a/src/api/handlers.py +++ b/src/api/handlers.py @@ -1,6 +1,5 @@ -# -*- coding: utf-8 -*- -# 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.contrib.sites.models import Site from django.utils.functional import lazy @@ -8,7 +7,7 @@ from catalogue.models import Book, Tag WL_BASE = lazy( - lambda: u'https://' + Site.objects.get_current().domain, unicode)() + lambda: 'https://' + Site.objects.get_current().domain, str)() category_singular = { 'authors': 'author',