rename User.is_subscriber_viewable => User.is_viewable

This commit is contained in:
imperosol
2025-11-09 18:25:51 +01:00
parent 144b05e49c
commit edbf07e6b8
14 changed files with 101 additions and 57 deletions

View File

@@ -243,7 +243,7 @@ class NewsListView(TemplateView):
User.objects.filter(
date_of_birth__month=localdate().month,
date_of_birth__day=localdate().day,
is_subscriber_viewable=True,
is_viewable=True,
)
.filter(role__in=["STUDENT", "FORMER STUDENT"])
.order_by("-date_of_birth"),