fix naming issue
This commit is contained in:
parent
fab351d800
commit
7a7d7a70b0
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user