|
@@ -18,6 +18,7 @@ MOVEMENT_WAY = [
|
|
|
|
|
|
|
|
|
class OrderRegForm(forms.ModelForm):
|
|
|
+ name_order = forms.CharField(label="Название заявки")
|
|
|
place_start = forms.CharField(label="Точка 1")
|
|
|
place_end = forms.CharField(label="Точка 2")
|
|
|
guide_type = forms.ChoiceField(choices=GUIDE_TYPE, label="Тип гида")
|
|
@@ -30,7 +31,7 @@ class OrderRegForm(forms.ModelForm):
|
|
|
|
|
|
class Meta:
|
|
|
model = OrdersLocal
|
|
|
- fields = ['place_start', 'place_end', 'guide_type', 'movement_way', 'numb_of_people', 'service_date', 'service_time', 'discription', 'price']
|
|
|
+ fields = ['name_order','place_start', 'place_end', 'guide_type', 'movement_way', 'numb_of_people', 'service_date', 'service_time', 'discription', 'price']
|
|
|
|
|
|
def __init__(self, *args, **kwargs):
|
|
|
super().__init__(*args, **kwargs)
|