mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-09 19:40:19 +00:00
Allow quick index updates
This commit is contained in:
@ -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"
|
||||
|
Reference in New Issue
Block a user