mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-27 04:58:42 +02:00
lint and fix test
This commit is contained in:
parent
8504eb1f39
commit
ad79557a55
5 changed files with 23 additions and 32 deletions
|
@ -1293,9 +1293,13 @@ class DomainRequest(TimeStampedModel):
|
|||
if flag_is_active_anywhere("organization_feature") and flag_is_active_anywhere("organization_requests"):
|
||||
# Check if the current federal agency is an outlawed one
|
||||
Portfolio = apps.get_model("registrar.Portfolio")
|
||||
return FederalAgency.objects.exclude(
|
||||
agency__in=Portfolio.objects.values_list("organization_name", flat=True),
|
||||
).filter(agency=self.federal_agency).exists()
|
||||
return (
|
||||
FederalAgency.objects.exclude(
|
||||
agency__in=Portfolio.objects.values_list("organization_name", flat=True),
|
||||
)
|
||||
.filter(agency=self.federal_agency)
|
||||
.exists()
|
||||
)
|
||||
|
||||
# NOTE: Shouldn't this be an AND on all required fields?
|
||||
return (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue