Commit be36b7f3 authored by Skia's avatar Skia

com: fix birthdays query

parent 09bde1bf
Pipeline #1518 passed with stage
in 8 minutes and 51 seconds
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment