From 7a7d7a70b08b661c695b39e89db60e15af901d51 Mon Sep 17 00:00:00 2001 From: Kuroshini Date: Wed, 15 Jan 2020 19:15:32 +0300 Subject: [PATCH] fix naming issue --- apps/establishment/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/establishment/models.py b/apps/establishment/models.py index 5eab194e..1d693219 100644 --- a/apps/establishment/models.py +++ b/apps/establishment/models.py @@ -314,8 +314,8 @@ class EstablishmentQuerySet(models.QuerySet): """ base_qs = self.similar_base(establishment).annotate_same_subtype(establishment) similarity_rules = { - 'ordering': [F('annotate_same_subtype').desc(), ], - 'distinctions': ['annotate_same_subtype', ] + 'ordering': [F('same_subtype').desc(), ], + 'distinctions': ['same_subtype', ] } if establishment.address and establishment.address.coordinates: base_qs = base_qs.annotate_distance(point=establishment.location)