fix merge

This commit is contained in:
Anatoly 2019-09-01 13:29:17 +03:00
parent e8d4626cdb
commit 3f90ef6dab

View File

@ -1,12 +1,14 @@
"""Establishment models."""
from functools import reduce
from django.contrib.contenttypes import fields as generic
from django.core.exceptions import ValidationError
from django.db import models
from django.utils.translation import gettext_lazy as _
from location.models import Address
from utils.models import (ProjectBaseMixin, ImageMixin, TJSONField,
TraslatedFieldsMixin, BaseAttributes)
from django.contrib.contenttypes import fields as generic
# todo: establishment type&subtypes check
@ -100,6 +102,7 @@ class Establishment(ProjectBaseMixin, ImageMixin, TraslatedFieldsMixin):
verbose_name=_('Price level'))
awards = generic.GenericRelation(to='main.Award')
tags = generic.GenericRelation(to='main.MetaDataContent')
reviews = generic.GenericRelation(to='review.Review')
objects = EstablishmentQuerySet.as_manager()