mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Changed django.forms.ValidationError imports to django.core.exceptions.ValidationError.
Co-Authored-By: Mariusz Felisiak <felisiak.mariusz@gmail.com>
This commit is contained in:
committed by
Mariusz Felisiak
parent
2788de95e3
commit
9ef4a18dbe
@@ -223,7 +223,7 @@ class BasePersonModelFormSet(BaseModelFormSet):
|
||||
person = person_dict.get('id')
|
||||
alive = person_dict.get('alive')
|
||||
if person and alive and person.name == "Grace Hopper":
|
||||
raise forms.ValidationError("Grace is not a Zombie")
|
||||
raise ValidationError("Grace is not a Zombie")
|
||||
|
||||
|
||||
class PersonAdmin(admin.ModelAdmin):
|
||||
|
||||
Reference in New Issue
Block a user