fix(regional,italy): renamed validate hook for address (#16732)
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user