주 메뉴 열기
대문
임의의 문서로
로그인
설정
Pywiki 소개
면책 조항
Pywiki
검색
바뀜
← 이전 편집
다음 편집 →
회원관리 2. 커스텀유저(AbstractUser 이용)
(편집)
2021년 11월 6일 (토) 11:14 판
202 바이트 추가됨
,
2021년 11월 6일 (토) 11:14
→DB에 반영
112번째 줄:
112번째 줄:
def has_perm(self, perm, obj=None):
def has_perm(self, perm, obj=None):
'''권한 소지여부를 판단하기 위한 메서드'''
'''권한 소지여부를 판단하기 위한 메서드'''
+
return True
+
</syntaxhighlight>
+
|-
+
|has_module_perms
+
|<syntaxhighlight lang="python3">
+
def has_module_perms(self, app_label):
+
'''앱 라벨을 받아, 해당 앱에 접근 가능한지 파악'''
return True
return True
</syntaxhighlight>
</syntaxhighlight>
Sam
사무관
,
인터페이스 관리자
,
관리자
, 교사
편집
1,408
번