Ticket #4587: model_meta_admin.patch
File model_meta_admin.patch, 564 bytes (added by , 17 years ago) |
---|
-
django/contrib/admin/sites.py
74 74 for model in model_or_iterable: 75 75 if model in self._registry: 76 76 raise AlreadyRegistered('The model %s is already registered' % model.__class__.__name__) 77 model._meta.admin = admin_class 77 78 self._registry[model] = admin_class(model) 78 79 79 80 def unregister(self, model_or_iterable):