Wednesday, March 30, 2011

Re: Documentation Checked But Unclear: How to supress form.errors from views when needed?

What do you mean by "if I refresh a page"? If you refresh a page that
has a form on it but has not been submitted, I wouldn't expect the
behavior you describe.

If you submit a form improperly and it displays errors, then you hit
'refresh,' the view will still get the POST (or GET) and will do
whatever your view does.

It sounds like, and correct me if I'm wrong, you want the view to
somehow know whether the POST is actually a re-submission of the
previous submission. If so, you could probably find a way to do that,
but it seems to me that an invalid form is an invalid form, and the
errors are legit.


You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

No comments:

Post a Comment