python – Django does not display errors from the custom validator, and instead resets the form

I recently started learning Django and can’t solve one problem. I created my validator for the form, but instead of showing an error window, it just resets the form. Here is the code models.py: from django.db import models from django.urls import reverse_lazy from django.core.exceptions import ValidationError class News(models.Model): title = models.CharField(max_length=150, verbose_name=”Title”) content = models.TextField(blank=True, … Read more