fix form new route
This commit is contained in:
SDE
2023-07-28 19:07:36 +03:00
parent 45234121d4
commit c0ed5d5803
4 changed files with 259 additions and 177 deletions

View File

@@ -3,10 +3,11 @@ from django.utils.translation import gettext_lazy as _
from BaseModels.base_models import BaseModel
type_transport_choices = (
type_transport_choices = [
('', _('-- Выберите cпособ перевозки --')),
('avia', _('Авиатранспорт')),
('road', _('Наземный транспорт'))
)
]
transfer_location_choices = (
('airport', _('В аэропорту')),
@@ -35,7 +36,7 @@ class Route(BaseModel):
choices=owner_type_choices, default='customer', verbose_name=_('Тип опреации'))
type_transport = models.CharField(
choices=type_transport_choices, default='avia', verbose_name=_('Выберите способ перевозки'))
choices=type_transport_choices, default='', verbose_name=_('Выберите способ перевозки'))
departure_DT = models.DateTimeField(default=True, verbose_name=_('Дата и время выезда'))
arrival_DT = models.DateTimeField(default=True, verbose_name=_('Дата и время прибытия'))
from_address_point = models.IntegerField(verbose_name=_('Пункт выезда'))