[Django]-Saving ModelForm error(User_Message could not be created because the data didn't validate)

59👍

Here’s your problem:

if messageform.is_valid:

That line needs to be

if messageform.is_valid():

Basically, the error comes from calling save() on an invalid form.

Leave a comment