X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/ff382f6c37063c0c4c5d21c2834a8759e25c5d02..0d652be22f4d6e5276e16f493ce58294655d7a0f:/src/api/handlers.py?ds=inline 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',