[Answer]-Allow Django required form field to pass validation when left blank?

1👍

Looks like I found an undocumented solution to my own question. Just need to add empty_permitted=True as a parameter when defining the form as seen below:

form3 = ChangePasswordForm(user=request.user, data=request.POST, empty_permitted=True)

That immediately solves the problem with the code in the snippet I’ve provided in the original question.

Leave a comment