mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-25 04:43:10 +00:00
12 lines
323 B
Python
12 lines
323 B
Python
from django.contrib import admin
|
|
|
|
from .models import User, School
|
|
|
|
class UserAdmin(admin.ModelAdmin):
|
|
list_display = ('name','surname','pseudo','email', 'school', 'state')
|
|
|
|
class SchoolAdmin(admin.ModelAdmin):
|
|
list_display = ('name',)
|
|
|
|
admin.site.register(User, UserAdmin)
|
|
admin.site.register(School, SchoolAdmin)
|