You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When cleaning a ProfileForm, add a clean_email method.
The clean_email method should check that the given email is unique (aka it doesn't exist in the database).
In the clean_email method, if an email is NOT unique, then raise a ValidationError with an appropriate error message. Also display that error message in the template.
Check these docs for reference on ValidationErrors.
The text was updated successfully, but these errors were encountered:
When cleaning a ProfileForm, add a clean_email method.
The clean_email method should check that the given email is unique (aka it doesn't exist in the database).
In the clean_email method, if an email is NOT unique, then raise a ValidationError with an appropriate error message. Also display that error message in the template.
Check these docs for reference on ValidationErrors.
The text was updated successfully, but these errors were encountered: