OIDC Integration: Supports Authentik officially, other solutions currently untested. Social login not implemented
This commit is contained in:
1 parent
dfea7e869b
commit
68bbb53976
28 files changed
+2365
-751
No files matched your search
@@ -24,6 +24,12 @@ class UserAdmin(BaseUserAdmin, ModelAdmin):
|
||||
compressed_fields = True
|
||||
warn_unsaved_form = True
|
||||
|
||||
def get_readonly_fields(self, request, obj=None):
|
||||
readonly = list(super().get_readonly_fields(request, obj))
|
||||
if obj:
|
||||
readonly.extend(["email"])
|
||||
return tuple(dict.fromkeys(readonly))
|
||||
|
||||
|
||||
@admin.register(Group)
|
||||
class GroupAdmin(BaseGroupAdmin, ModelAdmin):
|
||||
|
||||
Reference in new issue
Block a user