style(models.py): ignore pyright warning
This commit is contained in:
@@ -37,7 +37,7 @@ class CoursePage(Page):
|
|||||||
if not user.is_authenticated:
|
if not user.is_authenticated:
|
||||||
return False
|
return False
|
||||||
user_group_ids = user.groups.values_list("id", flat=True)
|
user_group_ids = user.groups.values_list("id", flat=True)
|
||||||
return self.allowed_groups.filter(id__in=user_group_ids).exists()
|
return self.allowed_groups.filter(id__in=user_group_ids).exists() # pyright: ignore[reportAttributeAccessIssue]
|
||||||
|
|
||||||
def get_context(self, request):
|
def get_context(self, request):
|
||||||
context = super().get_context(request)
|
context = super().get_context(request)
|
||||||
|
|||||||
Reference in New Issue
Block a user