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.
Source:stackexchange.com