mkoistinen / cmsplugin-form-handler

This package provides a mechanism for handling form-submissions in django-CMS plugins.
MIT License
14 stars 10 forks source link

store query string in session to correctly re-create form #4

Closed jproffitt closed 6 years ago

jproffitt commented 7 years ago

Right now, a dictionary is stored in the session for the form data. But query strings can use the same key multiple times. So storing a dictionary will lose data.

Instead, it should store the query string representation, and then convert it back to a QueryDict. That is what this fix does.

mkoistinen commented 6 years ago

@jproffitt Thank you for your contribution. I have pulled this into a newly created develop branch which contains the next release. I would like ask if you could test this branch in your project(s). And let me know if you face any issues with the updated code. Thank you!