mirror of
https://github.com/ae-utbm/sith.git
synced 2024-12-22 15:51:19 +00:00
com: fix birthdays query
This commit is contained in:
parent
09bde1bfdf
commit
be36b7f38a
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user