2.1.20 reference_data_tags

This commit is contained in:
SDE
2025-01-15 19:17:26 +03:00
parent 2d650cd51f
commit 575ee074b1
6 changed files with 32 additions and 1 deletions

View File

@@ -55,6 +55,7 @@ class RouteForm(forms.ModelForm):
error = get_phone_valid_error(cleaned_data["phone"])
if error:
self.add_error('phone', error)
cleaned_data['phone'] = self.data['phone']
# if 'extra_phone' in cleaned_data and 'extra_phone' in cleaned_data:
# from BaseModels.validators.form_field_validators import get_phone_valid_error