File "/Users/cloud/src/django/cyq/env/lib/python2.7/site-packages/django/contrib/admin/decorators.py", line 28, in _model_admin_wrapper
admin_site.register(models, admin_class=admin_class)
File "/Users/cloud/src/django/cyq/env/lib/python2.7/site-packages/django/contrib/admin/sites.py", line 104, in register
if model._meta.abstract:
AttributeError: type object 'AdminAdvancedFiltersMixin' has no attribute '_meta'
Looks like if I added the mixin to the model before do migration, it errors.
But if I just migrate first and add the mixin later, it works. Nonetheless, it is a problem.
File "/Users/cloud/src/django/cyq/env/lib/python2.7/site-packages/django/contrib/admin/decorators.py", line 28, in _model_admin_wrapper admin_site.register(models, admin_class=admin_class) File "/Users/cloud/src/django/cyq/env/lib/python2.7/site-packages/django/contrib/admin/sites.py", line 104, in register if model._meta.abstract: AttributeError: type object 'AdminAdvancedFiltersMixin' has no attribute '_meta'
Looks like if I added the mixin to the model before do migration, it errors. But if I just migrate first and add the mixin later, it works. Nonetheless, it is a problem.