[Answer]-Save data in form in django

1👍

You can do it that way:

form = TestForm(request.POST)
if form.is_valid():
    test = form.save(commit=False)
    test.user = request.user
    test.status = 'some_status'
    test.save()

Leave a comment