[Answered ]-Inserting a form to session raises picklingerror – django

2πŸ‘

βœ…

  • You don’t need to pickle form. If you want to store form value in the session, store form.cleaned_data

  • Based on whatever you have said, you are doing, you may want to checkout django form wizard. It pickles the data and stores it in the next forms as hidden values, you get all forms fields after completion.

πŸ‘€lprsd

0πŸ‘

I don’t know how helpful this will be, but there is explanation of this type of error in JSON serializer

0πŸ‘

if validation fails put the request.POST in your sessions and redirect the user back as usual. your other view simply has to collect this and initialize forms with invalid data and the errors you found on your POST view will re-appear in the redirected view.

πŸ‘€code shogan

Leave a comment