geex-arts / django-jet

Modern responsive template for the Django admin interface with improved functionality. We are proud to announce completely new Jet. Please check out Live Demo
https://github.com/jet-admin/jet-bridge
GNU Affero General Public License v3.0
3.57k stars 775 forks source link

Error editing child polymorphic model admin #225

Open faxioman opened 7 years ago

faxioman commented 7 years ago

Trying to change a polymorphic model I get this error:

'NoneType' object has no attribute 'get_list_display'

The error happens in method get_model_queryset of module utils. The error is here:

model_admin = admin_site._registry.get(model)

model_admin is None because a child model in polymorphic could be not explicitly registered (you can register a parent model and specify in a PolymorphicParentModelAdmin class all child that it's possible to manage) . No problems using the default django admin.

SalahAdDin commented 7 years ago

@f1nality Hey.

Ismael-VC commented 7 years ago

Please come to the django-jet Discord server so we can organize if you like:

Welcome! 😄