mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-15 17:17:02 +02:00
linted
This commit is contained in:
parent
74ad6699a7
commit
46c2078b5c
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue