Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
AE UTBM
Sith
Commits
bdd29a4d
Commit
bdd29a4d
authored
Dec 20, 2016
by
Skia
🤘
Browse files
Allow quick index updates
parent
e66b274f
Pipeline
#557
passed with stage
in 2 minutes and 24 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
core/search_indexes.py
View file @
bdd29a4d
...
...
@@ -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"
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment