I wrote below custom form validation to check the length of the message and if it is less than 8 characters it throws an error:
class ContactForm(forms.ModelF