2.1.1 import country flags

This commit is contained in:
SDE
2024-12-05 17:38:08 +03:00
parent a140ffe523
commit e56d29c322
262 changed files with 6079 additions and 3 deletions

View File

@@ -50,7 +50,7 @@ def routeForm_assign_choices_by_type_transport(form, type_transport):
class RouteForm(forms.ModelForm):
# from_address_point_txt = forms.CharField(required=True)
# to_address_point_txt = forms.CharField(required=True)
departure_DT = forms.DateField(required=True, input_formats=['%d.%m.%Y'])
departure_DT = forms.DateField(required=False, input_formats=['%d.%m.%Y'])
arrival_DT = forms.DateField(required=True, input_formats=['%d.%m.%Y'])
class Meta:
@@ -58,7 +58,9 @@ class RouteForm(forms.ModelForm):
exclude = [
'name', 'name_plural', 'order', 'createDT', 'modifiedDT', 'enable', 'json_data',
'receive_msg_by_sms', 'owner', 'owner_type',
'extra_phone', 'weight', ''
'extra_phone', 'weight', 'from_address_point', 'to_address_point',
'from_place', 'to_place', 'receive_msg_by_sms'
]
def clean(self):