From 3f90ef6dab6353fee287a79c0ec526724cca8b49 Mon Sep 17 00:00:00 2001 From: Anatoly Date: Sun, 1 Sep 2019 13:29:17 +0300 Subject: [PATCH] fix merge --- apps/establishment/models.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/establishment/models.py b/apps/establishment/models.py index 68b8872e..8f315fff 100644 --- a/apps/establishment/models.py +++ b/apps/establishment/models.py @@ -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()