mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 06:42:16 +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
|
||||
fk_name = 'user'
|
||||
max_num = 1
|
||||
readonly_fields = ('primary_character',)
|
||||
can_delete = False
|
||||
|
||||
|
||||
# Define a new UserAdmin class
|
||||
@@ -40,9 +42,11 @@ class PermissionRuleInline(generic.GenericTabularInline):
|
||||
ct_field = ''
|
||||
ct_fk_field = ''
|
||||
|
||||
|
||||
class PermissionRuleAdmin(admin.ModelAdmin):
|
||||
pass
|
||||
|
||||
|
||||
class PermissionRulesetAdmin(admin.ModelAdmin):
|
||||
list_display = ('name', 'group', 'active')
|
||||
list_filter = ('active',)
|
||||
|
||||
Reference in New Issue
Block a user