mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-29 22:16:33 +02:00
Update admin.py
This commit is contained in:
parent
4c3404b885
commit
b3904a662a
1 changed files with 5 additions and 0 deletions
|
@ -1312,6 +1312,8 @@ class DomainInformationAdmin(ListHeaderAdmin, ImportExportModelAdmin):
|
||||||
"authorizing_official",
|
"authorizing_official",
|
||||||
"domain",
|
"domain",
|
||||||
"submitter",
|
"submitter",
|
||||||
|
"portfolio",
|
||||||
|
"sub_organization"
|
||||||
]
|
]
|
||||||
|
|
||||||
# Table ordering
|
# Table ordering
|
||||||
|
@ -1618,6 +1620,8 @@ class DomainRequestAdmin(ListHeaderAdmin, ImportExportModelAdmin):
|
||||||
"creator",
|
"creator",
|
||||||
"authorizing_official",
|
"authorizing_official",
|
||||||
"investigator",
|
"investigator",
|
||||||
|
"portfolio",
|
||||||
|
"sub_organization",
|
||||||
]
|
]
|
||||||
filter_horizontal = ("current_websites", "alternative_domains", "other_contacts")
|
filter_horizontal = ("current_websites", "alternative_domains", "other_contacts")
|
||||||
|
|
||||||
|
@ -2737,6 +2741,7 @@ class SuborganizationAdmin(ListHeaderAdmin, ImportExportModelAdmin):
|
||||||
autocomplete_fields = [
|
autocomplete_fields = [
|
||||||
"portfolio",
|
"portfolio",
|
||||||
]
|
]
|
||||||
|
search_fields = ["name"]
|
||||||
|
|
||||||
|
|
||||||
admin.site.unregister(LogEntry) # Unregister the default registration
|
admin.site.unregister(LogEntry) # Unregister the default registration
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue