Merge remote-tracking branch 'origin/develop' into feature/news-image

This commit is contained in:
Anatoly 2019-08-26 11:51:37 +03:00
commit 610ecb6f35
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