Skip to content

Commit 7bc4b4a

Browse files
committed
fix: correct donor date filter in redirections count and update info banner style
1 parent 886eaeb commit 7bc4b4a

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

backend/donations/views/ngo_account/redirections.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def _get_ngo_causes(self, *, ngo: Ngo) -> QuerySet:
105105

106106
return (
107107
ngo.causes.annotate(
108-
redirections_count=Count("donor", filter=Q(date_created__gte=january_first())),
108+
redirections_count=Count("donor", filter=Q(donor__date_created__gte=january_first())),
109109
last_archive_job=Subquery(ngo_archive_jobs[:1]),
110110
)
111111
.values(

backend/templates/v2/ngo-account/banners/form-notifications-banner.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@
1818
{% trans "Go to the form page" as banner_cta_message %}
1919
{% endif %}
2020

21-
{% include "components/info-banner.html" with style="warning" %}
21+
{% include "components/info-banner.html" with style="info" %}

0 commit comments

Comments
 (0)