zever/lib/validator: Rename function to validate_choice_field_data.

This commit is contained in:
Yashashvi Dave
2019-06-04 13:28:13 +05:30
committed by Tim Abbott
parent 799a5e73c0
commit f25e00bcaa
2 changed files with 4 additions and 4 deletions

View File

@@ -228,7 +228,7 @@ def check_url(var_name: str, val: object) -> Optional[str]:
except ValidationError:
return _('%s is not a URL') % (var_name,)
def validate_field_data(field_data: ProfileFieldData) -> Optional[str]:
def validate_choice_field_data(field_data: ProfileFieldData) -> Optional[str]:
"""
This function is used to validate the data sent to the server while
creating/editing choices of the choice field in Organization settings.