Hello,
I can't see the use case here. If you are submitting the form with AJAX, why would you store it? Or, if I misunderstood you and you submit in the non-AJAX way, Django will send give you back your filled form with the validation errors.
Best,
Gergely
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/bffd59a7-c30f-4092-8160-30ef7e472b27%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Maybe I should have made the context more clear.
First of all, we're not using ModelForms but just Django Forms.
It's true that when it's not filled correctly, the form returns the validation but we have cases in which the data in the fields is not returned when the form operation is not successful.
In those cases we copy the sent data in python and return that sent data, filling the form with it, but we have achieved a better, more generic way by JavaScript.
When the form operation is successful, we need the data no more, because is already saved in database, so we want to clear it from HTML5 webStorage by JavaScript.
You received this message because you are subscribed to a topic in the Google Groups "Django users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/django-users/eZJ-mQgp9w0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CACczBUKE741snUn-BKF9RUzJejFypsb-W4tamtS7NJdW6F06KA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAG%2B5VyNe%3DwfHvz6%2BBdBKDVir7QbSMBB5HccqCf2v5ywo_QG_XA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CALn3ei1cskMLrgLPvfinGMqGDV5S9acpSqVudmibmD66OGOwDw%40mail.gmail.com.