added organisation and acronyms in admin query field
This commit is contained in:
parent
8e409d1a38
commit
c84ae636c5
1 changed files with 1 additions and 1 deletions
|
@ -116,7 +116,7 @@ class PersonAdmin(admin.ModelAdmin):
|
||||||
def get_field_queryset(self, db, db_field, request):
|
def get_field_queryset(self, db, db_field, request):
|
||||||
queryset = super().get_field_queryset(db, db_field, request)
|
queryset = super().get_field_queryset(db, db_field, request)
|
||||||
if db_field.name == 'organization':
|
if db_field.name == 'organization':
|
||||||
queryset = queryset.order_by('country','organisation_english')
|
queryset = queryset.order_by('country','organisation_english','organisation_2','organisation_3', 'acronym')
|
||||||
return queryset
|
return queryset
|
||||||
class ResourceKeywordInline(admin.TabularInline):
|
class ResourceKeywordInline(admin.TabularInline):
|
||||||
autocomplete_fields = ['keyword']
|
autocomplete_fields = ['keyword']
|
||||||
|
|
Loading…
Reference in a new issue