Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Websites UFRPE
Wagtail Videos
Commits
a9acd8c2
Commit
a9acd8c2
authored
Jul 13, 2016
by
Liam Brenner
Browse files
Update method for inserting/updating search index on video upload
parent
4a277251
Changes
1
Hide whitespace changes
Inline
Side-by-side
wagtailvideos/views/chooser.py
View file @
a9acd8c2
...
...
@@ -112,9 +112,9 @@ def chooser_upload(request):
if
form
.
is_valid
():
video
.
uploaded_by_user
=
request
.
user
video
.
save
()
# Reindex the video to make sure all tags are indexed
for
backend
in
get_search_backends
():
backend
.
add
(
video
)
search_index
.
insert_or_update_object
(
video
)
return
render_modal_workflow
(
request
,
None
,
'wagtailvideos/chooser/video_chosen.js'
,
...
...
Write
Preview
Markdown
is supported
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