I have a form raising a ValidationError in admin panel, like this
class HistoryForm(forms.ModelForm):
class Meta:
model = History
fields = '__all__'
def clean(self):
raise ValidationError("A history error")
When the ValidationError is raised, the admin page always showing "Please correct the error below." with the error message "A history error".
Now I want to show the error message "A history error" only without "Please correct the error below.", how can I achieve it?
I want a method without modifying template.