mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 14:03:30 +00:00
zever/lib/validator: Rename function to validate_choice_field_data.
This commit is contained in:
committed by
Tim Abbott
parent
799a5e73c0
commit
f25e00bcaa
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user