gault-millau/apps/establishment/models.py
2019-08-26 18:07:01 +03:00

15 lines
418 B
Python

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)