gault-millau/apps/establishments/models.py
Dmitriy Kuzmenko 966423ecec add Est app
2019-08-26 11:48:15 +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)