Mes premières dents (les incisives) sur Django...
[progfou.git] / auf_zap / formations / admin.py
1 from auf_zap.formations.models import *
2 from django.contrib import admin
3
4 class LangueFormationInline(admin.TabularInline):
5 model = LangueFormation
6 extra = 3
7
8 #class PartenaireInline(admin.StackedInline):
9 # model = Universite
10 # extra = 3
11
12 class FormationAdmin(admin.ModelAdmin):
13 #fieldsets = [
14 # (None, {'fields': ['question']}),
15 # ('Date information', {'fields': ['pub_date'], 'classes': ['collapse']}),
16 #]
17 #inlines = [LangueFormationInline, PartenaireInline]
18 inlines = [LangueFormationInline]
19 list_display = ('nom_diplome','niveau_diplome','universite_accueil','bourses_aides')
20 list_filter = ['niveau_diplome','universite_accueil']
21
22 admin.site.register(NiveauDiplome)
23 admin.site.register(TypeDiplome)
24 admin.site.register(ReconnaissanceDiplome)
25 admin.site.register(DomaineScientifique)
26 admin.site.register(Specialisation)
27 admin.site.register(Langue)
28 admin.site.register(Pays)
29 admin.site.register(Universite)
30 admin.site.register(TypeSelection)
31 admin.site.register(TypeFormation)
32 admin.site.register(Formation, FormationAdmin)