mirror of
https://github.com/ae-utbm/sith.git
synced 2026-10-30 22:29:32 +00:00
1 parent
7b48156259
commit
b87990e3db
4 files changed
+79
-22
No files matched your search
@@ -283,6 +283,10 @@ class NewsListView(CanViewMixin, ListView):
|
||||
kwargs = super(NewsListView, self).get_context_data(**kwargs)
|
||||
kwargs['NewsDate'] = NewsDate
|
||||
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'])\
|
||||
.order_by('-date_of_birth')
|
||||
return kwargs
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user