Fixed two bugs in newforms-admin branch
|Reported by:||yi.codeplayer at gmail dot com||Owned by:||Adrian Holovaty|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
- the code bellow would cause error:
from django.contrib import admin admin.site.register([Model1, Model2], SomeAdminClass)
in contrib/admin/sites.py AdminSite::register , when calling
issubclass(model_or_iterable, Model) , it would complain that
model_or_iterable is not class (because it's instance of list).
- In the index page of new admin , each model is displayed in a seperated app section, there is only one model in each app section (i don't know exactly how to describe it , hope you can understand). this patch make it behavie normal.