diff --git a/apps/location/models.py b/apps/location/models.py index ae7aec37..600aa07a 100644 --- a/apps/location/models.py +++ b/apps/location/models.py @@ -24,7 +24,8 @@ class CountryQuerySet(models.QuerySet): return self.filter(is_active=switcher) -class Country(TranslatedFieldsMixin, SVGImageMixin, ProjectBaseMixin): +class Country(TranslatedFieldsMixin, + SVGImageMixin, ProjectBaseMixin): """Country model.""" STR_FIELD_NAME = 'name' @@ -143,6 +144,9 @@ class CityQuerySet(models.QuerySet): class City(GalleryMixin, models.Model): """Region model.""" name = models.CharField(_('name'), max_length=250) + name_translated = TJSONField(blank=True, null=True, default=None, + verbose_name=_('Translated name'), + help_text='{"en-GB":"some text"}') code = models.CharField(_('code'), max_length=250) region = models.ForeignKey(Region, on_delete=models.CASCADE, blank=True, null=True,