mirror of https://gitlab.federez.net/re2o/re2o
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
323 B
12 lines
323 B
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)
|
|
|