mirror of
https://github.com/nikdoof/vapemap.git
synced 2025-12-14 06:42:17 +00:00
Ignore stores without a geo location from the search index.
This commit is contained in:
@@ -12,4 +12,4 @@ class StoreIndex(indexes.SearchIndex, indexes.Indexable):
|
||||
|
||||
def index_queryset(self, using=None):
|
||||
"""Used when the entire index for model is updated."""
|
||||
return self.get_model().objects.filter(active=True)
|
||||
return self.get_model().objects.filter(active=True).exclude(geo_latitude=None)
|
||||
|
||||
Reference in New Issue
Block a user