mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-23 20:03:11 +00:00
Register club et adherent admin pour histo
This commit is contained in:
parent
543037b667
commit
513933abba
1 changed files with 24 additions and 5 deletions
|
@ -32,11 +32,28 @@ from django.contrib.auth.models import Group
|
||||||
from django.contrib.auth.admin import UserAdmin as BaseUserAdmin
|
from django.contrib.auth.admin import UserAdmin as BaseUserAdmin
|
||||||
from reversion.admin import VersionAdmin
|
from reversion.admin import VersionAdmin
|
||||||
|
|
||||||
from .models import User, ServiceUser, School, ListRight, ListShell
|
from .models import (
|
||||||
from .models import Ban, Whitelist, Request, LdapUser, LdapServiceUser
|
User,
|
||||||
from .models import LdapServiceUserGroup, LdapUserGroup
|
ServiceUser,
|
||||||
from .forms import UserChangeForm, UserCreationForm
|
School,
|
||||||
from .forms import ServiceUserChangeForm, ServiceUserCreationForm
|
ListRight,
|
||||||
|
ListShell,
|
||||||
|
Adherent,
|
||||||
|
Club,
|
||||||
|
Ban,
|
||||||
|
Whitelist,
|
||||||
|
Request,
|
||||||
|
LdapUser,
|
||||||
|
LdapServiceUser,
|
||||||
|
LdapServiceUserGroup,
|
||||||
|
LdapUserGroup
|
||||||
|
)
|
||||||
|
from .forms import (
|
||||||
|
UserChangeForm,
|
||||||
|
UserCreationForm,
|
||||||
|
ServiceUserChangeForm,
|
||||||
|
ServiceUserCreationForm
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
class UserAdmin(admin.ModelAdmin):
|
class UserAdmin(admin.ModelAdmin):
|
||||||
|
@ -195,6 +212,8 @@ class ServiceUserAdmin(VersionAdmin, BaseUserAdmin):
|
||||||
|
|
||||||
|
|
||||||
admin.site.register(User, UserAdmin)
|
admin.site.register(User, UserAdmin)
|
||||||
|
admin.site.register(Adherent, UserAdmin)
|
||||||
|
admin.site.register(Club, UserAdmin)
|
||||||
admin.site.register(ServiceUser, ServiceUserAdmin)
|
admin.site.register(ServiceUser, ServiceUserAdmin)
|
||||||
admin.site.register(LdapUser, LdapUserAdmin)
|
admin.site.register(LdapUser, LdapUserAdmin)
|
||||||
admin.site.register(LdapUserGroup, LdapUserGroupAdmin)
|
admin.site.register(LdapUserGroup, LdapUserGroupAdmin)
|
||||||
|
|
Loading…
Reference in a new issue