How i save multiple request.POST.get() in form.save()

I wanna get data with request.POST.get() and then save in form.save(). How I can solve that?

def example(request):
        form = addform()
        if (request.method == 'POST'):
            form = addform(request.POST)
            question = request.POST.get('question')
            answer = request.POST.get('answer')
            explain = request.POST.get('explain')

            if (form.is_valid()):
                form.save() # i wann save all (question + answer + explain) here in form.
                

        context = {'form': form}
        return render(request, 'Example_fragenkatalog.html', context)

I hope someone can help me! Thank you!

Back to Top