from django.contrib.postgres.fields import JSONField from django.db import models from django.utils.translation import gettext_lazy as _ from utils.models import ProjectBaseMixin, ImageMixin class Establishment(ProjectBaseMixin): """Establishment model.""" name = models.CharField(max_length=100) description = JSONField() country = models.ForeignKey('location.Country', on_delete=models.CASCADE)