diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2007-02-25 22:01:20 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2007-02-25 22:01:20 +0000 |
| commit | a9fafd521f13c62eec78c27414262deda62993d3 (patch) | |
| tree | a4a1d1de1872892d839aaffdb143b350fb3044ca | |
| parent | 77bdc858451dda6e513272dcebdd49e676efc76f (diff) | |
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
| -rw-r--r-- | django/contrib/admin/sites.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/django/contrib/admin/sites.py b/django/contrib/admin/sites.py index d6aa66e327..2e628e2d85 100644 --- a/django/contrib/admin/sites.py +++ b/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 @@ class AdminSite(object): 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: |
