Django

Code

Changeset 4586

Show
Ignore:
Timestamp:
02/25/07 16:01:20 (1 year ago)
Author:
adrian
Message:

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

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/branches/newforms-admin/django/contrib/admin/sites.py

    r4581 r4586  
    1212        self._registry = {} # model_class -> admin_class 
    1313 
    14     def register(model_or_iterable, admin_class=None, **options): 
     14    def register(self, model_or_iterable, admin_class=None, **options): 
    1515        """ 
    1616        Registers the given model(s) with the given admin class. 
     
    3131            self._registry[model] = admin_class 
    3232 
    33     def unregister(model_or_iterable): 
     33    def unregister(self, model_or_iterable): 
    3434        if issubclass(model_or_iterable, Model): 
    3535            model_or_iterable = [model_or_iterable]