mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-03 08:22:18 +02:00
Update populate_requested_suborg.py
This commit is contained in:
parent
6d13f26ffb
commit
87b08e3fa0
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ class Command(BaseCommand, PopulateScriptTemplate):
|
|||
|
||||
def custom_filter(self, records):
|
||||
"""Exclude domain requests that have the same org name as the portfolio"""
|
||||
return records.exclude(organization_name=F("portfolio__organization_name"))
|
||||
return records.exclude(organization_name__iexact=F("portfolio__organization_name"))
|
||||
|
||||
def update_record(self, record: DomainRequest):
|
||||
"""Adds data to requested_suborganization, suborganization_city, and suborganization_state_territory."""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue