2.1.9 get_splited_cargo_type

This commit is contained in:
SDE
2025-01-10 21:48:20 +03:00
parent 4c96c94549
commit e09743b474
3 changed files with 27 additions and 0 deletions

View File

@@ -63,6 +63,11 @@ class RouteForm(forms.ModelForm):
'from_place', 'to_place', 'receive_msg_by_sms'
]
def __init__(self, *args, **kwargs):
super(RouteForm, self).__init__(*args, **kwargs)
self.fields['from_city'].required = True
self.fields['to_city'].required = True
def clean(self):
# print('check')
cleaned_data = super(RouteForm, self).clean()