create_or_change_route_ajax return route_id
This commit is contained in:
SDE
2023-11-30 14:06:57 +03:00
parent fb665b409c
commit fbfdec2380
13 changed files with 129 additions and 49 deletions

View File

@@ -75,14 +75,14 @@ class Route(BaseModel):
ordering = ('name',)
def from_country_n_city_str(self):
res = 'Неизвестно'
res = _('Неизвестно')
if self.from_city:
res = self.from_city.get_country_n_city_str()
return res
def to_country_n_city_str(self):
res = 'Неизвестно'
res = _('Неизвестно')
if self.to_city:
res = self.to_city.get_country_n_city_str()