From e23de9e350d716c4d9ebe0b27c9f2752fe1aa543 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Thu, 19 Sep 2013 06:24:12 -0400 Subject: [PATCH] Fixed typo in exception message; refs #19414 Thanks Alexey Boriskin for the report. --- django/contrib/admin/decorators.py | 2 +- tests/admin_registration/tests.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/django/contrib/admin/decorators.py b/django/contrib/admin/decorators.py index cc6943dbdd..5862bb5536 100644 --- a/django/contrib/admin/decorators.py +++ b/django/contrib/admin/decorators.py @@ -20,7 +20,7 @@ def register(*models, **kwargs): raise ValueError('site must subclass AdminSite') if not issubclass(admin_class, ModelAdmin): - raise ValueError('Wrapped class must sublcass ModelAdmin.') + raise ValueError('Wrapped class must subclass ModelAdmin.') admin_site.register(models, admin_class=admin_class) diff --git a/tests/admin_registration/tests.py b/tests/admin_registration/tests.py index 994de3bdf7..e5947e0a93 100644 --- a/tests/admin_registration/tests.py +++ b/tests/admin_registration/tests.py @@ -115,7 +115,7 @@ class TestRegistrationDecorator(TestCase): ) def test_wrapped_class_not_a_model_admin(self): - self.assertRaisesMessage(ValueError, 'Wrapped class must sublcass ModelAdmin.', + self.assertRaisesMessage(ValueError, 'Wrapped class must subclass ModelAdmin.', register(Person), CustomSite) def test_custom_site_not_an_admin_site(self):