Renamed CorpContact.title to civility

This matches the same attributes for Student and Teacher models.
This commit is contained in:
Claude Paroz 2018-04-24 12:01:44 +02:00
parent 68e644b6f6
commit 764031a3ee
7 changed files with 37 additions and 25 deletions

View file

@ -166,7 +166,7 @@ class CorpContactAdmin(admin.ModelAdmin):
list_filter = (('archived', ArchivedListFilter),)
ordering = ('last_name', 'first_name')
search_fields = ('last_name', 'first_name', 'role')
fields = (('title', 'last_name', 'first_name'),
fields = (('civility', 'last_name', 'first_name'),
('street', 'pcode', 'city'),
('birth_date',),
('corporation',),
@ -192,7 +192,7 @@ class CorpContactAdmin(admin.ModelAdmin):
class ContactInline(admin.StackedInline):
model = CorpContact
fields = (('title', 'last_name', 'first_name'),
fields = (('civility', 'last_name', 'first_name'),
('sections', 'is_main', 'always_cc', 'archived'),
('role', 'tel', 'email'))
extra = 1