c24f41250af7c2a1c830e65abcbe3d05d6a2b371
[auf_django_references.git] / tests / universite / admin.py
1 from auf.django.references.forms import EtablissementForm
2 from django import forms
3 from django.contrib import admin
4
5 from tests.universite.models import Universite
6
7 class UniversiteForm(EtablissementForm):
8
9 class Meta(EtablissementForm.Meta):
10 model = Universite
11 fields = ('nom', 'pays', 'region', 'ville', 'recteur', 'ref')
12
13 class UniversiteAdmin(admin.ModelAdmin):
14 form = UniversiteForm
15
16 admin.site.register(Universite, UniversiteAdmin)