[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
|
||||
'''
|
||||
return not all((c in ('0', '-') for c in postcode))
|
||||
return not all((c in ('0', '-', '.', ' ', ',') for c in postcode))
|
||||
|
||||
@classmethod
|
||||
def validate_street(cls, street):
|
||||
|
||||
Reference in New Issue
Block a user