[openaddresses] don't allow postcodes that are all zeroes with a dash (Poland, US ZIP+4)
This commit is contained in:
@@ -81,7 +81,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 == '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