mirror of
https://github.com/ae-utbm/sith.git
synced 2026-11-05 08:49:32 +00:00
Allow quick index updates
This commit is contained in:
1 parent
e66b274f0e
commit
bdd29a4d65
1 file changed
+2
@@ -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"
|
||||||
Reference in new issue
Block a user