fix search routes insert txt address points
This commit is contained in:
SDE
2023-09-16 16:19:22 +03:00
parent 636d97250b
commit bae7e05077
4 changed files with 40 additions and 18 deletions

View File

@@ -54,6 +54,14 @@ class City(BaseModel):
else:
return f'{self.id}'
def get_country_n_city_str(self):
country = 'Неизвестно'
city = self.name
if self.country:
country = self.country
return f'{city} / {country}'
class Meta:
verbose_name = _('Город')