Allow quick index updates

This commit is contained in:
Skia 2016-12-20 15:19:11 +01:00
parent e66b274f0e
commit bdd29a4d65

View File

@ -13,3 +13,5 @@ class UserIndex(indexes.SearchIndex, indexes.Indexable):
"""Used when the entire index for model is updated.""" """Used when the entire index for model is updated."""
return self.get_model().objects.all() return self.get_model().objects.all()
def get_updated_field(self):
return "last_update"