2.1.9 get_splited_cargo_type
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user