diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2011-03-14 23:00:03 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2011-03-14 23:00:03 +0000 |
| commit | 4e25bc71b18e609768c4cf99854f350a5bc8e44d (patch) | |
| tree | be95ebd9050f21d8fe29f6bec9edd06fa6f1cfad /tests/regressiontests/admin_views/models.py | |
| parent | f43b3f58fb60a281c9db34c95f4a2a6384f40693 (diff) | |
Fixed #15609 -- Fixed some 'raise' statements to use the newer style syntax. Thanks, DaNmarner
git-svn-id: http://code.djangoproject.com/svn/django/trunk@15811 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests/regressiontests/admin_views/models.py')
| -rw-r--r-- | tests/regressiontests/admin_views/models.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/regressiontests/admin_views/models.py b/tests/regressiontests/admin_views/models.py index 220b4a3575..b65f8a4b37 100644 --- a/tests/regressiontests/admin_views/models.py +++ b/tests/regressiontests/admin_views/models.py @@ -252,7 +252,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 forms.ValidationError("Grace is not a Zombie") class PersonAdmin(admin.ModelAdmin): list_display = ('name', 'gender', 'alive') |
