Inject errors into already validated form?

后端 未结 4 1344
梦如初夏
梦如初夏 2020-12-12 15:55

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 fi

4条回答
  •  感情败类
    2020-12-12 16:42

    You can add additional error details to the form's _errors attribute directly:

    https://docs.djangoproject.com/en/1.5/ref/forms/validation/#described-later https://docs.djangoproject.com/en/1.6/ref/forms/validation/#modifying-field-errors

提交回复
热议问题