url link 저장 및 변경 관리 계정에서 할수 있도록 추가
All checks were successful
Build And Test / build-and-push (push) Successful in 4m8s
All checks were successful
Build And Test / build-and-push (push) Successful in 4m8s
This commit is contained in:
@ -12,14 +12,32 @@ class CustomUserAdmin(UserAdmin):
|
||||
# 사용자 필드 구성
|
||||
fieldsets = (
|
||||
(None, {'fields': ('username', 'password')}),
|
||||
('Personal Info', {'fields': ('email', 'encrypted_private_key')}),
|
||||
('Personal Info', {
|
||||
'fields': (
|
||||
'email',
|
||||
'encrypted_private_key',
|
||||
'nhnc_id',
|
||||
'nhnc_api_tenant_id',
|
||||
'url_gitea',
|
||||
'url_harbor',
|
||||
'url_argocd',
|
||||
'url_web_ide',
|
||||
'url_rancher',
|
||||
'url_grafana',
|
||||
'url_prometheus',
|
||||
'url_opensearch',
|
||||
'url_kiali',
|
||||
'url_nexus',
|
||||
'url_mattermost',
|
||||
)
|
||||
}),
|
||||
('Permissions', {'fields': ('is_staff', 'is_active')}),
|
||||
)
|
||||
|
||||
# 읽기 전용 필드 추가
|
||||
readonly_fields = ('encrypted_private_key',)
|
||||
|
||||
search_fields = ('username', 'email')
|
||||
search_fields = ('username', 'email', 'nhnc_id', 'nhnc_api_tenant_id')
|
||||
ordering = ('username',)
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user