Wednesday, February 29, 2012

Re: Post data Query Dict - Why not a list ?

Also, having a form to parse and validate the POST data is really the way to go. Even if you never actually show the form to the user, for example in an AJAX callback, deferring all that responsibility and just use "form.is_valid()" and "form.cleaned_data" is a lot better than doing parameter validation in the view.

mjl

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/g5Ln_-KcCYkJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment