From 404b79b95bc5e0b3ad3f833bd1969a43f71b659e Mon Sep 17 00:00:00 2001 From: Nikolay Zhuravlev Date: Sat, 13 Apr 2024 13:48:13 +0200 Subject: [PATCH] Fix extensions set --- anytask/courses/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/anytask/courses/views.py b/anytask/courses/views.py index 0af0b209..1717a5bc 100644 --- a/anytask/courses/views.py +++ b/anytask/courses/views.py @@ -642,7 +642,7 @@ def course_settings(request, course_id): issue.set_teacher(teacher=teacher) if 'rb_extensions[]' in request.POST: - course.filename_extensions = request.POST.getlist('rb_extensions[]') + course.filename_extensions.set(request.POST.getlist('rb_extensions[]')) else: course.filename_extensions.clear()