root / edumanage / admin.py @ 38f2278d
History | View | Annotate | Download (900 Bytes)
1 |
# -*- coding: utf-8 -*-.
|
---|---|
2 |
from django.contrib import admin |
3 |
from eduroam.edumanage.models import * |
4 |
|
5 |
from django.contrib.contenttypes import generic |
6 |
|
7 |
|
8 |
class NameInline(generic.GenericTabularInline): |
9 |
model = Name_i18n |
10 |
|
11 |
class InstitutionAdmin(admin.ModelAdmin): |
12 |
inlines = [ |
13 |
NameInline, |
14 |
] |
15 |
|
16 |
class ServiceLocAdmin(admin.ModelAdmin): |
17 |
inlines = [ |
18 |
NameInline, |
19 |
] |
20 |
|
21 |
|
22 |
|
23 |
admin.site.register(Name_i18n) |
24 |
admin.site.register(Contact) |
25 |
admin.site.register(InstitutionContactPool) |
26 |
admin.site.register(URL_i18n) |
27 |
admin.site.register(InstRealm) |
28 |
admin.site.register(InstServer) |
29 |
admin.site.register(InstRealmMon) |
30 |
admin.site.register(MonProxybackClient) |
31 |
admin.site.register(MonLocalEAPOLData) |
32 |
admin.site.register(ServiceLoc, ServiceLocAdmin) |
33 |
admin.site.register(Institution, InstitutionAdmin) |
34 |
admin.site.register(InstitutionDetails) |
35 |
admin.site.register(Realm) |
36 |
admin.site.register(RealmData) |