mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-12 14:08:28 +02:00
Check for api response codes when resetting values
This commit is contained in:
parent
0feb0a7ef8
commit
b89ae53c84
2 changed files with 12 additions and 7 deletions
|
@ -114,7 +114,7 @@ class Portfolio(TimeStampedModel):
|
|||
def save(self, *args, **kwargs):
|
||||
"""Save override for custom properties"""
|
||||
|
||||
# We can't have urbanization if the state isn't puerto rico
|
||||
# The urbanization field is only intended for the state_territory puerto rico
|
||||
if self.state_territory != self.StateTerritoryChoices.PUERTO_RICO and self.urbanization:
|
||||
self.urbanization = None
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue