mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-19 17:25:56 +02:00
Add PR suggestions
This commit is contained in:
parent
47779f8f29
commit
44b8163422
3 changed files with 19 additions and 3 deletions
|
@ -110,3 +110,12 @@ class Portfolio(TimeStampedModel):
|
|||
|
||||
def __str__(self) -> str:
|
||||
return f"{self.organization_name}"
|
||||
|
||||
def save(self, *args, **kwargs):
|
||||
"""Save override for custom properties"""
|
||||
|
||||
# We can't have urbanization if the state isn't puerto rico
|
||||
if self.state_territory != self.StateTerritoryChoices.PUERTO_RICO and self.urbanization:
|
||||
self.urbanization = None
|
||||
|
||||
super().save(*args, **kwargs)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue