rename User.is_subscriber_viewable => User.is_viewable

This commit is contained in:
imperosol committed 2025-11-11 14:31:20 +01:00
1 parent c942ff6aec
commit 04702335e2
14 files changed
+101 -57

No files matched your search

+1 -1
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"),