mirror of
https://github.com/ae-utbm/sith.git
synced 2026-10-11 13:16:09 +00:00
com: fix birthdays query
This commit is contained in:
1 parent
09bde1bfdf
commit
be36b7f38a
1 file changed
+1
-1
+1
-1
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user