mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 14:52:15 +00:00
Read Only primary character, allows for the user page to load a lot quicker.
This commit is contained in:
@@ -22,6 +22,8 @@ class SSOUserProfileInline(admin.StackedInline):
|
|||||||
model = SSOUser
|
model = SSOUser
|
||||||
fk_name = 'user'
|
fk_name = 'user'
|
||||||
max_num = 1
|
max_num = 1
|
||||||
|
readonly_fields = ('primary_character',)
|
||||||
|
can_delete = False
|
||||||
|
|
||||||
|
|
||||||
# Define a new UserAdmin class
|
# Define a new UserAdmin class
|
||||||
@@ -40,9 +42,11 @@ class PermissionRuleInline(generic.GenericTabularInline):
|
|||||||
ct_field = ''
|
ct_field = ''
|
||||||
ct_fk_field = ''
|
ct_fk_field = ''
|
||||||
|
|
||||||
|
|
||||||
class PermissionRuleAdmin(admin.ModelAdmin):
|
class PermissionRuleAdmin(admin.ModelAdmin):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class PermissionRulesetAdmin(admin.ModelAdmin):
|
class PermissionRulesetAdmin(admin.ModelAdmin):
|
||||||
list_display = ('name', 'group', 'active')
|
list_display = ('name', 'group', 'active')
|
||||||
list_filter = ('active',)
|
list_filter = ('active',)
|
||||||
|
|||||||
Reference in New Issue
Block a user