X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/e24e657ebf536f55c1bde66bd41563fae30a98b0..4fb23ed3c3396d23a37a718fc857ecc8b36b0c7f:/src/catalogue/forms.py diff --git a/src/catalogue/forms.py b/src/catalogue/forms.py index 080b588dd..919ff3a62 100644 --- a/src/catalogue/forms.py +++ b/src/catalogue/forms.py @@ -1,5 +1,5 @@ -# 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 import forms from django.utils.translation import gettext_lazy as _ @@ -17,6 +17,9 @@ class BookImportForm(forms.Form): gallery_url = forms.CharField(required=False) days = forms.IntegerField(required=False) hidden = forms.BooleanField(required=False) + logo = forms.CharField(required=False) + logo_mono = forms.CharField(required=False) + logo_alt = forms.CharField(required=False) def clean(self): from django.core.files.base import ContentFile @@ -34,6 +37,9 @@ class BookImportForm(forms.Form): remote_gallery_url=self.cleaned_data['gallery_url'], days=self.cleaned_data['days'], findable=not self.cleaned_data['hidden'], + logo=self.cleaned_data['logo'], + logo_mono=self.cleaned_data['logo_mono'], + logo_alt=self.cleaned_data['logo_alt'], **kwargs)