Reputation: 4683
I've been developing a django project for 1 month. So I'm new at Django. My current problem with Django is; When I have multiple forms in one page and the page is submitted for a form, the other forms field values are lost. Because they are not posted. I've found a solution for this problem;
Maybe I can keep them in session object. But it may not be good to keep them for whole time which the user logg in. But I dont know. I may have to use this method.
Is there another way which is more effective to keep all forms fields in Django?
Any Suggestion?
Thank!
Upvotes: 1
Views: 596
Reputation: 1157
You can make use of AJAX for a single form submission instead of whole page submit.
Upvotes: 2