[fix] not allowing postal codes to pass validation if they are simply float zero
This commit is contained in:
@@ -85,7 +85,7 @@ class OpenAddressesFormatter(object):
|
|||||||
'''
|
'''
|
||||||
Postcodes that are all zeros are improperly-formatted NULL values
|
Postcodes that are all zeros are improperly-formatted NULL values
|
||||||
'''
|
'''
|
||||||
return not all((c in ('0', '-') for c in postcode))
|
return not all((c in ('0', '-', '.', ' ', ',') for c in postcode))
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def validate_street(cls, street):
|
def validate_street(cls, street):
|
||||||
|
|||||||
Reference in New Issue
Block a user