Reference the correct value lookup

This commit is contained in:
2013-04-08 21:56:49 +01:00
parent f5d064ffac
commit 3886f3d456

View File

@@ -12,4 +12,4 @@ class StoreIndex(indexes.SearchIndex, indexes.Indexable):
def index_queryset(self, using=None): def index_queryset(self, using=None):
"""Used when the entire index for model is updated.""" """Used when the entire index for model is updated."""
return self.get_model().objects.filter(active=True).exclude(geo_latitude=None) return self.get_model().objects.filter(active=True).exclude(address__geo_latitude=None)