mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-22 09:11:04 +02:00
aligned logic on federal type across the application
This commit is contained in:
parent
f5429b97b0
commit
e15499e4a6
5 changed files with 31 additions and 27 deletions
|
@ -579,8 +579,8 @@ class DomainExport(BaseExport):
|
|||
Q(portfolio__isnull=False) & Q(portfolio__federal_agency__isnull=False),
|
||||
then=F("portfolio__federal_agency__federal_type"),
|
||||
),
|
||||
# Otherwise, return the natively assigned value
|
||||
default=F("federal_type"),
|
||||
# Otherwise, return the federal type from federal agency
|
||||
default=F("federal_agency__federal_type"),
|
||||
output_field=CharField(),
|
||||
),
|
||||
"converted_organization_name": Case(
|
||||
|
@ -1654,8 +1654,8 @@ class DomainRequestExport(BaseExport):
|
|||
Q(portfolio__isnull=False) & Q(portfolio__federal_agency__isnull=False),
|
||||
then=F("portfolio__federal_agency__federal_type"),
|
||||
),
|
||||
# Otherwise, return the natively assigned value
|
||||
default=F("federal_type"),
|
||||
# Otherwise, return the federal type from federal agency
|
||||
default=F("federal_agency__federal_type"),
|
||||
output_field=CharField(),
|
||||
),
|
||||
"converted_organization_name": Case(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue