This commit is contained in:
David Kennedy 2024-03-28 12:43:46 -04:00
parent 74ad6699a7
commit 46c2078b5c
No known key found for this signature in database
GPG key ID: 6528A5386E66B96B

View file

@ -967,7 +967,7 @@ class DomainRequestAdmin(ListHeaderAdmin):
parameter_name = "status__in" parameter_name = "status__in"
template = "django/admin/multiple_choice_list_filter.html" template = "django/admin/multiple_choice_list_filter.html"
def lookups(self, request, model_admin): def lookups(self, request, model_admin):
return DomainRequest.DomainRequestStatus.choices return DomainRequest.DomainRequestStatus.choices
@ -1336,7 +1336,7 @@ class DomainRequestAdmin(ListHeaderAdmin):
# and the request is the initial request for this view # and the request is the initial request for this view
if not bool(request.GET) and request.path not in http_referer: if not bool(request.GET) and request.path not in http_referer:
# modify the GET of the request to set the selected filter # modify the GET of the request to set the selected filter
modified_get = request.GET.copy() modified_get = copy.deepcopy(request.GET)
modified_get["status__in"] = "submitted,in review,action needed" modified_get["status__in"] = "submitted,in review,action needed"
request.GET = modified_get request.GET = modified_get
response = super().changelist_view(request, extra_context=extra_context) response = super().changelist_view(request, extra_context=extra_context)