mirror of
https://github.com/ae-utbm/sith.git
synced 2026-10-30 22:29:32 +00:00
Add index to search function
This commit is contained in:
1 parent
5b95299bde
commit
e66b274f0e
3 files changed
+4
-23
No files matched your search
@@ -13,7 +13,3 @@ class UserIndex(indexes.SearchIndex, indexes.Indexable):
|
||||
"""Used when the entire index for model is updated."""
|
||||
return self.get_model().objects.all()
|
||||
|
||||
def prepare(self, obj):
|
||||
ret = super(UserIndex, self).prepare(obj)
|
||||
print(ret)
|
||||
return ret
|
||||
Reference in new issue
Block a user