Permalink
Browse files

newforms-admin: Added missing 'self's to AdminSite class

git-svn-id: http://code.djangoproject.com/svn/django/branches/newforms-admin@4586 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 77bdc85 commit a9fafd521f13c62eec78c27414262deda62993d3 @adrianholovaty adrianholovaty committed Feb 25, 2007
Showing with 2 additions and 2 deletions.
  1. +2 −2 django/contrib/admin/sites.py
@@ -11,7 +11,7 @@ class AdminSite(object):
def __init__(self):
self._registry = {} # model_class -> admin_class
- def register(model_or_iterable, admin_class=None, **options):
+ def register(self, model_or_iterable, admin_class=None, **options):
"""
Registers the given model(s) with the given admin class.
@@ -30,7 +30,7 @@ def register(model_or_iterable, admin_class=None, **options):
raise AlreadyRegistered('The model %s is already registered' % model.__class__.__name__)
self._registry[model] = admin_class
- def unregister(model_or_iterable):
+ def unregister(self, model_or_iterable):
if issubclass(model_or_iterable, Model):
model_or_iterable = [model_or_iterable]
for model in model_or_iterable:

0 comments on commit a9fafd5

Please sign in to comment.