Fixed typo in exception message; refs #19414

Thanks Alexey Boriskin for the report.
This commit is contained in:
Tim Graham 2013-09-19 06:24:12 -04:00
parent 9d3e60aa3e
commit e23de9e350
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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):