mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-27 13:06:30 +02:00
Requested changes
This commit is contained in:
parent
d14a23621e
commit
367b2b8043
2 changed files with 6 additions and 6 deletions
|
@ -1306,9 +1306,9 @@ class DomainRequest(TimeStampedModel):
|
|||
Portfolio = apps.get_model("registrar.Portfolio")
|
||||
return (
|
||||
FederalAgency.objects.exclude(
|
||||
agency__in=Portfolio.objects.values_list("organization_name", flat=True),
|
||||
id__in=Portfolio.objects.values_list("federal_agency__id", flat=True),
|
||||
)
|
||||
.filter(agency=self.federal_agency)
|
||||
.filter(id=self.federal_agency.id)
|
||||
.exists()
|
||||
)
|
||||
return bool(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue