0.7.29
fix search routes insert txt address points
This commit is contained in:
@@ -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 = _('Город')
|
||||
|
||||
Reference in New Issue
Block a user