diff --git a/signbank/manage_videos.py b/signbank/manage_videos.py index 133bf60b2..466e2d84d 100644 --- a/signbank/manage_videos.py +++ b/signbank/manage_videos.py @@ -201,7 +201,7 @@ def import_video_to_gloss_manager(request, video_file_path): import_video_data["videofile"] = filename import_video_data["imagelink"] = "" import_video_data["videolink"] = "" - import_video_data["uploadstatus"] = _("Failure.") + import_video_data["uploadstatus"] = status import_video_data["errors"] = errors return import_video_data diff --git a/signbank/zip_interface.py b/signbank/zip_interface.py index 6d172deae..771371b65 100644 --- a/signbank/zip_interface.py +++ b/signbank/zip_interface.py @@ -1,5 +1,7 @@ import json +from django.views.decorators.csrf import csrf_exempt + from signbank.dictionary.models import * from django.db.models import FileField from django.core.files.base import ContentFile, File @@ -247,6 +249,7 @@ def save_video(video_file_path, goal): return False, feedback_message +@csrf_exempt def import_video_file(request, gloss, video_file_path): # request is needed as a parameter to the GlossVideoHistory try: