admin django plus joli, en 5 ou 6 lignes
[auf-auth-mysql.git] / django / bases / nssauth / admin.py
CommitLineData
417b6291
TN
1# -*- coding: utf-8 -*-
2
970c90e9
TN
3from bases.nssauth.models import User, Group
4from django.contrib import admin
5
417b6291
TN
6class UserAdmin(admin.ModelAdmin):
7 fieldsets = [
8 (None, { 'fields': ['username', 'password', 'gecos', 'homedir', 'is_active'] }),
9 ('Groupes', { 'fields': [ 'group' , 'groups'] } ),
10 ('Système', { 'fields': [ 'shell', 'min', 'max', 'inact'], 'classes': ['collapse'] }),
11 ]
12
13admin.site.register(User, UserAdmin)
970c90e9
TN
14admin.site.register(Group)
15