From 4dfa5e95be38cccb35251d42b373d865d453485f Mon Sep 17 00:00:00 2001 From: yang Date: Sun, 5 May 2024 20:34:47 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20=ED=95=98=EB=93=9C=20=EC=BD=94?= =?UTF-8?q?=EB=94=A9=EB=90=9C=20=ED=98=84=EC=9E=AC=20=EA=B8=B0=EC=88=98=20?= =?UTF-8?q?=EA=B0=92=20=EC=83=81=EC=88=98=EB=A1=9C=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mypages/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mypages/views.py b/mypages/views.py index 86a17d5..f8e6b99 100644 --- a/mypages/views.py +++ b/mypages/views.py @@ -50,10 +50,10 @@ def get(self, request): pass # 누적 출석부 get - if user.generation == 11: + if user.generation == CURRENT_GENERATION: # 운영진 -> 아기사자 전체 누적 출석 if user.is_admin == True: - members = User.objects.filter(generation=11, is_admin=False) + members = User.objects.filter(generation=CURRENT_GENERATION, is_admin=False) # generation 현재 - 2012 total_attendances = []