From 64cbfe0bfcb60225da3c8fdf67fe6ef936aa06cf Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Tue, 13 May 2014 14:03:00 +0200 Subject: [PATCH] Index only searchable map This was broken on the sesql to pgindex switch Unittests needed. --- umap/models.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/umap/models.py b/umap/models.py index b28898ad..57db3b20 100644 --- a/umap/models.py +++ b/umap/models.py @@ -25,6 +25,9 @@ class MapIndex(IndexBase): def get_start_publish(self): return self.obj.modified_at + def get_publish(self): + return self.obj.share_status == Map.PUBLIC + def get_vectors(self): vectors = [] if self.obj.name: