From bdd29a4d659c1fd8c73843acdaf9009ffe4a3f6d Mon Sep 17 00:00:00 2001 From: Skia Date: Tue, 20 Dec 2016 15:19:11 +0100 Subject: [PATCH] Allow quick index updates --- core/search_indexes.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/search_indexes.py b/core/search_indexes.py index 23879144..03ececa4 100644 --- a/core/search_indexes.py +++ b/core/search_indexes.py @@ -13,3 +13,5 @@ class UserIndex(indexes.SearchIndex, indexes.Indexable): """Used when the entire index for model is updated.""" return self.get_model().objects.all() + def get_updated_field(self): + return "last_update"