Skip to content

Commit

Permalink
Fixed typo in exception message; refs #19414
Browse files Browse the repository at this point in the history
Thanks Alexey Boriskin for the report.
  • Loading branch information
timgraham committed Sep 19, 2013
1 parent 9d3e60a commit e23de9e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion django/contrib/admin/decorators.py
Expand Up @@ -20,7 +20,7 @@ def _model_admin_wrapper(admin_class):
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)

Expand Down
2 changes: 1 addition & 1 deletion tests/admin_registration/tests.py
Expand Up @@ -115,7 +115,7 @@ def test_multiple_registration(self):
)

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):
Expand Down

0 comments on commit e23de9e

Please sign in to comment.