Changeset 4586
- Timestamp:
- 02/25/07 16:01:20 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/branches/newforms-admin/django/contrib/admin/sites.py
r4581 r4586 12 12 self._registry = {} # model_class -> admin_class 13 13 14 def register( model_or_iterable, admin_class=None, **options):14 def register(self, model_or_iterable, admin_class=None, **options): 15 15 """ 16 16 Registers the given model(s) with the given admin class. … … 31 31 self._registry[model] = admin_class 32 32 33 def unregister( model_or_iterable):33 def unregister(self, model_or_iterable): 34 34 if issubclass(model_or_iterable, Model): 35 35 model_or_iterable = [model_or_iterable]
