[openaddresses] don't allow postcodes that are all zeroes with a dash (Poland, US ZIP+4)

This commit is contained in:
Al
2016-09-02 03:39:19 -04:00
parent 3b15ae7c44
commit a4a09fcb3e

View File

@@ -81,7 +81,7 @@ class OpenAddressesFormatter(object):
'''
Postcodes that are all zeros are improperly-formatted NULL values
'''
return not all((c == '0' for c in postcode))
return not all((c in ('0', '-') for c in postcode))
@classmethod
def validate_street(cls, street):