[fix] not allowing postal codes to pass validation if they are simply float zero

This commit is contained in:
Al
2016-12-22 02:59:54 -05:00
parent c6683e3237
commit 7d195ca331

View File

@@ -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):