From: Radek Czajka Date: Tue, 24 Mar 2026 17:27:05 +0000 (+0100) Subject: fixes X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/f1d541634355755e03c883feda7f6e72782542e9?ds=sidebyside fixes --- diff --git a/src/annoy/models.py b/src/annoy/models.py index 638da5e86..e1604bbad 100644 --- a/src/annoy/models.py +++ b/src/annoy/models.py @@ -127,7 +127,7 @@ class Banner(models.Model): progress = PayUOrder.objects.filter( completed_at__gte=self.since, completed_at__lte=self.until, - ).aggregate(c=models.Sum('schedule__amount'))['c'] + ).aggregate(c=models.Sum('schedule__amount'))['c'] or 0 for schedule in Schedule.objects.filter( method='paypal', diff --git a/src/annoy/templates/annoy/banner_seasonal.html b/src/annoy/templates/annoy/banner_seasonal.html index a3a8a1aae..dba55a05a 100644 --- a/src/annoy/templates/annoy/banner_seasonal.html +++ b/src/annoy/templates/annoy/banner_seasonal.html @@ -51,7 +51,7 @@
- +
@@ -60,7 +60,7 @@   {% if banner.target %} - {{ banner.target }} zł + {{ banner.target|floatformat:"g" }} zł {% endif %} diff --git a/src/club/forms.py b/src/club/forms.py index ceda8d5b1..0ee00dc7f 100644 --- a/src/club/forms.py +++ b/src/club/forms.py @@ -90,7 +90,7 @@ class DonationStep2Form(forms.ModelForm, NewsletterForm): consents = [] for consent, key, consent_field in self.consent: - if self.cleaned_data[key]: + if consent.required or self.cleaned_data[key]: instance.consent.add(consent) return instance diff --git a/src/wolnelektury/static/2022/styles/layout/_checkout.scss b/src/wolnelektury/static/2022/styles/layout/_checkout.scss index 71d6e827e..3b1ce0634 100644 --- a/src/wolnelektury/static/2022/styles/layout/_checkout.scss +++ b/src/wolnelektury/static/2022/styles/layout/_checkout.scss @@ -104,7 +104,6 @@ line-height: 150%; color: #FFFFFF; margin-top: 8px; - max-width: 410px; } .l-checkout__box__header__content {