-# 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.conf import settings
from django.shortcuts import render
])
if len(data) < limit:
infos = infopages.models.InfoPage.objects.filter(
+ published=True,
+ findable=True,
title_pl__iregex='\m' + prefix).only('title', 'id', 'slug')
data.extend([
{
[
item['label']
for item in data
+ ],
+ [
+ item.get('author', '')
+ for item in data
+ ],
+ [
+ item['url']
+ for item in data
]
]