From 4d7803694a32a28672dc5d71eab7c3c47db727f0 Mon Sep 17 00:00:00 2001 From: Hironsan Date: Fri, 4 Aug 2023 16:41:40 +0900 Subject: [PATCH] Fix example list view --- backend/examples/views/example.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/examples/views/example.py b/backend/examples/views/example.py index 38fdfa04..fa889b26 100644 --- a/backend/examples/views/example.py +++ b/backend/examples/views/example.py @@ -26,7 +26,7 @@ class ExampleList(generics.ListCreateAPIView): def get_queryset(self): member = get_object_or_404(Member, project=self.project, user=self.request.user) - if member.is_admin: + if member.is_admin(): return self.model.objects.filter(project=self.project) return self.model.objects.filter(project=self.project, assignments__assignee=self.request.user)