Commit a9acd8c2 authored by Liam Brenner's avatar Liam Brenner
Browse files

Update method for inserting/updating search index on video upload

parent 4a277251
......@@ -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',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment