Add index to search function

This commit is contained in:
Skia
2016-12-19 21:00:09 +01:00
parent 5b95299bde
commit e66b274f0e
3 changed files with 4 additions and 23 deletions

View File

@ -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