straight55b / app-engine-patch

Automatically exported from code.google.com/p/app-engine-patch
0 stars 0 forks source link

admin.site.unregister does not work #146

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
call to admin.site.unregister, for example:
admin.site.unregister(django.contrib.auth.models.User) throws 
TypeError 'PropertiedClass' object is not iterable

Solution: change "isinstance" to "issubclass" in unregister function in
django/contrib/admin/sites.py - unregister gets model class, not model
instance.

What version of the product are you using? On what operating system?
appenginepatch 1.0, Linux

Original issue reported on code.google.com by kryn...@gmail.com on 19 May 2009 at 10:24

GoogleCodeExporter commented 9 years ago
Thanks for reporting! This is already fixed in the repository.

Original comment by wkornew...@gmail.com on 20 May 2009 at 6:15