Verified Commit 0295896c authored by erdnaxe's avatar erdnaxe 🎇

Do not subscribe user protected models to admin

parent 4e10fc5c
Pipeline #1142 passed with stage
in 2 minutes and 58 seconds
...@@ -35,39 +35,9 @@ from .models import ( ...@@ -35,39 +35,9 @@ from .models import (
Ban, Ban,
Whitelist, Whitelist,
Request, Request,
) )
class LdapUserAdmin(admin.ModelAdmin):
"""Administration du ldapuser"""
list_display = ('name', 'uidNumber', 'login_shell')
exclude = ('user_password', 'sambat_nt_password')
search_fields = ('name',)
class LdapServiceUserAdmin(admin.ModelAdmin):
"""Administration du ldapserviceuser"""
list_display = ('name',)
exclude = ('user_password',)
search_fields = ('name',)
class LdapUserGroupAdmin(admin.ModelAdmin):
"""Administration du ldapusergroupe"""
list_display = ('name', 'members', 'gid')
search_fields = ('name',)
class LdapServiceUserGroupAdmin(admin.ModelAdmin):
"""Administration du ldap serviceusergroup"""
list_display = ('name',)
search_fields = ('name',)
@admin.register(School) @admin.register(School)
class SchoolAdmin(VersionAdmin): class SchoolAdmin(VersionAdmin):
"""Manage all schools in admin""" """Manage all schools in admin"""
...@@ -204,10 +174,6 @@, UserAdmin) ...@@ -204,10 +174,6 @@, UserAdmin), UserAdmin), UserAdmin), UserAdmin), UserAdmin), ServiceUserAdmin), ServiceUserAdmin), LdapUserAdmin), LdapUserGroupAdmin), LdapServiceUserAdmin), LdapServiceUserGroupAdmin), ListRightAdmin), ListRightAdmin), EMailAddressAdmin), EMailAddressAdmin), RequestAdmin), RequestAdmin)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment