Add fields (ext_id, sector, short_name) to Corporation
This commit is contained in:
parent
98584f7208
commit
5cf2e5d8d5
4 changed files with 39 additions and 3 deletions
|
|
@ -55,10 +55,11 @@ class ContactInline(admin.StackedInline):
|
|||
extra = 1
|
||||
|
||||
class CorporationAdmin(admin.ModelAdmin):
|
||||
list_display = ('name', 'pcode', 'city')
|
||||
list_display = ('name', 'short_name', 'pcode', 'city')
|
||||
list_editable = ('short_name',) # Temporarily?
|
||||
search_fields = ('name', 'pcode', 'city')
|
||||
ordering = ('name',)
|
||||
fields = ('name', 'typ', 'street', ('pcode', 'city'), ('tel', 'email'),
|
||||
fields = (('name', 'short_name', 'sector'), ('typ', 'ext_id'), 'street', ('pcode', 'city'), ('tel', 'email'),
|
||||
'web', 'archived')
|
||||
inlines = [ContactInline]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue