From 1a4b9e0d6bbec0e834808f0f1c27198fad7c7d88 Mon Sep 17 00:00:00 2001 From: ben8 Date: Tue, 22 Apr 2025 17:51:19 +0200 Subject: [PATCH] =?UTF-8?q?H=C3=BCbscheres=5FBilder=5FUpload+Zur=C3=BCckse?= =?UTF-8?q?tzfunktion?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- django/library/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/library/views.py b/django/library/views.py index 034543d..5c33638 100644 --- a/django/library/views.py +++ b/django/library/views.py @@ -315,7 +315,7 @@ def new_question(request): if question_type not in ['multiple_choice', 'true_false']: base_url = reverse('library:new_question') return redirect(f'{base_url}?type=multiple_choice&quiz_id={quiz_id}') - + if request.method == 'POST': question_text = request.POST.get('question', '') question_image = request.FILES.get('question_image', None)