2.1.43 fix

This commit is contained in:
SDE
2025-02-28 15:42:44 +03:00
parent fd343f098e
commit 685c201840
2 changed files with 3 additions and 2 deletions

View File

@@ -58,7 +58,8 @@ class RouteForm(forms.ModelForm):
try:
if 'type_transport' in self.errors:
self.errors.pop('type_transport')
if self.instance and self.instance.owner_type == 'customer':
self.errors.pop('type_transport')
if 'phone' in cleaned_data and 'phone' in cleaned_data:
from BaseModels.validators.form_field_validators import get_phone_valid_error