From be36b7f38a61160dde4dc06635437e0c3f013a96 Mon Sep 17 00:00:00 2001 From: Skia Date: Wed, 19 Sep 2018 11:37:16 +0200 Subject: [PATCH] com: fix birthdays query --- com/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/com/views.py b/com/views.py index 52fb8a01..b4313167 100644 --- a/com/views.py +++ b/com/views.py @@ -325,7 +325,7 @@ class NewsListView(CanViewMixin, ListView): kwargs['timedelta'] = timedelta kwargs['birthdays'] = User.objects\ .filter(date_of_birth__month=timezone.now().month, date_of_birth__day=timezone.now().day)\ - .filter(role__in=['STUDENT', 'FORMER_STUDENT'])\ + .filter(role__in=['STUDENT', 'FORMER STUDENT'])\ .order_by('-date_of_birth') return kwargs