Commit 85239cb9e2723f766ef1df5f854732d84470840e
1 parent
9eede01f
Exists in
master
and in
39 other branches
Adding updated field to users
Showing
1 changed file
with
3 additions
and
0 deletions
Show diff stats
src/accounts/search_indexes.py
| @@ -22,6 +22,9 @@ class UserIndex(indexes.SearchIndex, indexes.Indexable): | @@ -22,6 +22,9 @@ class UserIndex(indexes.SearchIndex, indexes.Indexable): | ||
| 22 | def get_model(self): | 22 | def get_model(self): |
| 23 | return User | 23 | return User |
| 24 | 24 | ||
| 25 | + def get_updated_field(self): | ||
| 26 | + return 'date_joined' | ||
| 27 | + | ||
| 25 | def prepare_type(self, obj): | 28 | def prepare_type(self, obj): |
| 26 | return u'user' | 29 | return u'user' |
| 27 | 30 |