Ticket #4588: handle_options.patch
File handle_options.patch, 667 bytes (added by , 17 years ago) |
---|
-
django/contrib/admin/sites.py
68 68 If a model is already registered, this will raise AlreadyRegistered. 69 69 """ 70 70 admin_class = admin_class or ModelAdmin 71 # TODO: Handle options 71 # it works now 72 if options: 73 admin_class = type(admin_class.__name__, (admin_class,), options) 72 74 if issubclass(model_or_iterable, Model): 73 75 model_or_iterable = [model_or_iterable] 74 76 for model in model_or_iterable: