10077/efficient-input-lookup #2
1 changed files with 3 additions and 5 deletions
|
@ -58,7 +58,7 @@ class PersonAdmin(admin.ModelAdmin):
|
||||||
),
|
),
|
||||||
}),
|
}),
|
||||||
)
|
)
|
||||||
list_display = ['id', 'full_name', 'organization']
|
list_display = ['id', 'full_name' ]
|
||||||
autocomplete_fields = ['organization']
|
autocomplete_fields = ['organization']
|
||||||
# list_display_links = ['id']
|
# list_display_links = ['id']
|
||||||
|
|
||||||
|
@ -87,7 +87,6 @@ class ResourceAdmin(admin.ModelAdmin):
|
||||||
search_fields = ['title', 'url', 'citation', 'abstract']
|
search_fields = ['title', 'url', 'citation', 'abstract']
|
||||||
readonly_fields = ['id']
|
readonly_fields = ['id']
|
||||||
list_display = ['title', 'citation', 'type']
|
list_display = ['title', 'citation', 'type']
|
||||||
ordering = ['title']
|
|
||||||
fieldsets = (
|
fieldsets = (
|
||||||
(None, {
|
(None, {
|
||||||
'fields': (
|
'fields': (
|
||||||
|
@ -164,8 +163,7 @@ class RangeAdmin(admin.ModelAdmin):
|
||||||
'fields': ('comments',),
|
'fields': ('comments',),
|
||||||
})
|
})
|
||||||
)
|
)
|
||||||
list_display = ['range_name', 'mother_range', 'countries']
|
list_display = ['range_name', 'countries', 'mother_range']
|
||||||
ordering = ['range_name']
|
|
||||||
|
|
||||||
|
|
||||||
class PeopleOrganizationInline(admin.TabularInline):
|
class PeopleOrganizationInline(admin.TabularInline):
|
||||||
|
@ -180,7 +178,7 @@ class OrganizationAdmin(admin.ModelAdmin):
|
||||||
]
|
]
|
||||||
readonly_fields = ('org_num1',)
|
readonly_fields = ('org_num1',)
|
||||||
search_fields = ['organisation_search', 'org_alpha_search', 'organisation_2', 'organisation_3', 'subject']
|
search_fields = ['organisation_search', 'org_alpha_search', 'organisation_2', 'organisation_3', 'subject']
|
||||||
list_display = ['organisation_english', 'organisation_2', 'country']
|
list_display = ['organisation_english', 'organisation_2']
|
||||||
fieldsets = (
|
fieldsets = (
|
||||||
(None, {
|
(None, {
|
||||||
'fields': (
|
'fields': (
|
||||||
|
|
Loading…
Reference in a new issue