Django: Inject errors into already validated form?

Posted by Parand on Stack Overflow See other posts from Stack Overflow or by Parand
Published on 2008-10-09T19:45:22Z Indexed on 2010/05/21 20:40 UTC
Read the original article Hit count: 128

Filed under:

After my form.Form validates the user input values I pass them to a separate (external) process for further processing. This external process can potentially find further errors in the values.

Is there a way to inject these errors into the already validated form so they can be displayed via the usual form error display methods? Or, are there better alternative approaches?

One suggestions was to include the external processing in the form validation. I'm not crazy about this since the external process does a lot more than just validate.

© Stack Overflow or respective owner

Related posts about django