add Est app

This commit is contained in:
Dmitriy Kuzmenko 2019-08-26 11:48:15 +03:00
parent ae1971e76d
commit 966423ecec
15 changed files with 25 additions and 0 deletions

View File

View File

@ -0,0 +1,3 @@
from django.contrib import admin
# Register your models here.

View File

@ -0,0 +1,5 @@
from django.apps import AppConfig
class EstablishmentsConfig(AppConfig):
name = 'establishments'

View File

@ -0,0 +1,14 @@
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)

View File

View File

@ -0,0 +1,3 @@
from django.test import TestCase
# Create your tests here.

View File

View File

View File

View File

View File

View File