fix(regional,italy): renamed validate hook for address (#16732)

This commit is contained in:
Gaurav Naik
2019-02-20 12:08:53 +05:30
committed by Sagar Vora
parent 2b7ce3dc71
commit 3bf0acbac6
2 changed files with 2 additions and 2 deletions

View File

@@ -285,7 +285,7 @@ def get_progressive_name_and_number(doc):
return progressive_name, progressive_number
def validate_address(doc, method):
def set_state_code(doc, method):
if not (hasattr(doc, "state_code") and doc.country in ["Italy", "Italia", "Italian Republic", "Repubblica Italiana"]):
return