X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/ff382f6c37063c0c4c5d21c2834a8759e25c5d02..7010b5cb6b4e4380d9e23add9c7c98431b6e3f95:/src/api/handlers.py diff --git a/src/api/handlers.py b/src/api/handlers.py index d08812f41..5af5cfb64 100644 --- a/src/api/handlers.py +++ b/src/api/handlers.py @@ -1,4 +1,3 @@ -# -*- 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. # @@ -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',