mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-27 21:16:28 +02:00
formatted for linter
This commit is contained in:
parent
6286ae96be
commit
4a104b6ff6
1 changed files with 9 additions and 9 deletions
|
@ -60,7 +60,7 @@ class CustomChangeListForPortfolioFiltering(ChangeList):
|
||||||
# ignored.
|
# ignored.
|
||||||
# Remove portfolio so that it does not error as an invalid
|
# Remove portfolio so that it does not error as an invalid
|
||||||
# filter parameter.
|
# filter parameter.
|
||||||
ignored_params = list(IGNORED_PARAMS) + ['portfolio']
|
ignored_params = list(IGNORED_PARAMS) + ["portfolio"]
|
||||||
for ignored in ignored_params:
|
for ignored in ignored_params:
|
||||||
if ignored in lookup_params:
|
if ignored in lookup_params:
|
||||||
del lookup_params[ignored]
|
del lookup_params[ignored]
|
||||||
|
@ -2276,7 +2276,7 @@ class DomainRequestAdmin(ListHeaderAdmin, ImportExportModelAdmin):
|
||||||
request params."""
|
request params."""
|
||||||
qs = super().get_queryset(request)
|
qs = super().get_queryset(request)
|
||||||
# Check if a 'portfolio' parameter is passed in the request
|
# Check if a 'portfolio' parameter is passed in the request
|
||||||
portfolio_id = request.GET.get('portfolio')
|
portfolio_id = request.GET.get("portfolio")
|
||||||
if portfolio_id:
|
if portfolio_id:
|
||||||
# Further filter the queryset by the portfolio
|
# Further filter the queryset by the portfolio
|
||||||
qs = qs.filter(portfolio=portfolio_id)
|
qs = qs.filter(portfolio=portfolio_id)
|
||||||
|
@ -2746,7 +2746,7 @@ class DomainAdmin(ListHeaderAdmin, ImportExportModelAdmin):
|
||||||
request params."""
|
request params."""
|
||||||
qs = super().get_queryset(request)
|
qs = super().get_queryset(request)
|
||||||
# Check if a 'portfolio' parameter is passed in the request
|
# Check if a 'portfolio' parameter is passed in the request
|
||||||
portfolio_id = request.GET.get('portfolio')
|
portfolio_id = request.GET.get("portfolio")
|
||||||
if portfolio_id:
|
if portfolio_id:
|
||||||
# Further filter the queryset by the portfolio
|
# Further filter the queryset by the portfolio
|
||||||
qs = qs.filter(domain_info__portfolio=portfolio_id)
|
qs = qs.filter(domain_info__portfolio=portfolio_id)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue