Première implementation de sso
This commit is contained in:
12
authentification/admin.py
Normal file
12
authentification/admin.py
Normal file
@@ -0,0 +1,12 @@
|
||||
from django.contrib import admin
|
||||
from authentification.models import Departement, Employe
|
||||
|
||||
@admin.register(Departement)
|
||||
class DepartementAdmin(admin.ModelAdmin):
|
||||
list_display = ('nom',)
|
||||
|
||||
@admin.register(Employe)
|
||||
class EmployeAdmin(admin.ModelAdmin):
|
||||
list_display = ('user', 'matricule', 'departement', 'fonction', 'date_embauche')
|
||||
list_filter = ('departement', 'fonction')
|
||||
search_fields = ('user__username', 'matricule')
|
||||
Reference in New Issue
Block a user