Add link between corporation and its parent

This commit is contained in:
Claude Paroz 2016-01-18 12:31:32 +01:00
parent d45742d88f
commit 73e3680da0
3 changed files with 22 additions and 2 deletions

View file

@ -70,8 +70,8 @@ class CorporationAdmin(admin.ModelAdmin):
list_editable = ('short_name',) # Temporarily?
search_fields = ('name', 'pcode', 'city')
ordering = ('name',)
fields = (('name', 'short_name', 'sector'), ('typ', 'ext_id'), 'street', ('pcode', 'city'), ('tel', 'email'),
'web', 'archived')
fields = (('name', 'short_name'), 'parent', ('sector', 'typ', 'ext_id'),
'street', ('pcode', 'city'), ('tel', 'email'), 'web', 'archived')
inlines = [ContactInline]