projet cartographie preuve concept francis.ngatsi
[davin.git] / projets / cartographie / carto / formation / admin.py
1 # -=- encoding: utf-8 -=-
2
3 from django.contrib import admin
4
5 from formation.models import *
6
7 class FormationAdmin(admin.ModelAdmin):
8 search_fields = ('intitule',)
9 list_display = ('intitule','sigle',)
10 list_filter = ('etablissement',)
11
12 fieldsets = (
13 ('Dilplôme', {
14 'fields': ('intitule', 'sigle', 'traduction', 'type_diplome', 'discipline_auf', 'niveau_entree', 'niveau_sortie', 'homologation', 'delivrance', 'vocation', 'debouches', 'url',)
15 }),
16 ('Etablissement(s)', {
17 'fields': ('etablissement','composante', 'pays', 'ville', 'url_comp',)
18 }),
19 ('Organisation de la formation', {
20 'fields': ('presentation', 'duree', 'type_formation', 'langue', 'admision', 'cout', 'respo', 'co_respo',)
21 }),
22 )
23
24 class PartenaireAdmin(admin.ModelAdmin):
25 search_fields = ('nom_partner',)
26 list_display = ('nom_partner','sigle_partner',)
27
28
29 admin.site.register(Formation, FormationAdmin)
30 admin.site.register(Partenaire, PartenaireAdmin)