admin.py 323 Bytes
Newer Older
lhark's avatar
lhark committed
1 2
from django.contrib import admin

3 4 5 6 7 8 9 10 11 12
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)