Update the list view
Organisation : add country to the list at the end Mountain Ranges: add country at the end. sort the range names in alphabetical order. Persons: should have organisation name in the list view Resources: Alphabetically sort the titles
This commit is contained in:
parent
8809beedda
commit
1c2641af0d
1 changed files with 5 additions and 3 deletions
|
@ -58,7 +58,7 @@ class PersonAdmin(admin.ModelAdmin):
|
|||
),
|
||||
}),
|
||||
)
|
||||
list_display = ['id', 'full_name' ]
|
||||
list_display = ['id', 'full_name', 'organization']
|
||||
# list_display_links = ['id']
|
||||
|
||||
|
||||
|
@ -86,6 +86,7 @@ class ResourceAdmin(admin.ModelAdmin):
|
|||
search_fields = ['title', 'url', 'citation', 'abstract']
|
||||
readonly_fields = ['id']
|
||||
list_display = ['title', 'citation', 'type']
|
||||
ordering = ['title']
|
||||
fieldsets = (
|
||||
(None, {
|
||||
'fields': (
|
||||
|
@ -162,7 +163,8 @@ class RangeAdmin(admin.ModelAdmin):
|
|||
'fields': ('comments',),
|
||||
})
|
||||
)
|
||||
list_display = ['range_name', 'countries', 'mother_range']
|
||||
list_display = ['range_name', 'mother_range', 'countries']
|
||||
ordering = ['range_name']
|
||||
|
||||
|
||||
class PeopleOrganizationInline(admin.TabularInline):
|
||||
|
@ -177,7 +179,7 @@ class OrganizationAdmin(admin.ModelAdmin):
|
|||
]
|
||||
readonly_fields = ('org_num1',)
|
||||
search_fields = ['organisation_search', 'org_alpha_search', 'organisation_2', 'organisation_3', 'subject']
|
||||
list_display = ['organisation_english', 'organisation_2']
|
||||
list_display = ['organisation_english', 'organisation_2', 'country']
|
||||
fieldsets = (
|
||||
(None, {
|
||||
'fields': (
|
||||
|
|
Loading…
Reference in a new issue