Closed heemayl closed 1 year ago
After going through the relevant source codes of django-filer
and django-admin
, and adding a debugger here on Django admin checks, found and fix the issue finally. I have a custom User
model (for using email
as the USERNAME_FILED
and other stuff) but was using the default ModelAdmin
(UserAdmin
) for that causing the problem. To fix this, I've created a custom admin for the User
model (inheriting from UserAdmin
) and set correct values for attributes list_display
and ordering
(as they point to username
in UserAdmin
).
Given the misleading nature of the error messages, I'm not sure if it's worth adding a note on the django-filer
/django-cms
doc somewhere regarding the custom User
model and ModelAdmin
/UserAdmin
.
I'm trying to follow the official guide to install
django-cms
: https://docs.django-cms.org/en/latest/how_to/install.htmlI installed
django-filer
as a dependency and updated the relevant settings; I didn't do anything extra apart from what's mentioned in the doc.Afterward, when I try to run
python manage.py migrate filer
, I'm getting the following errors:I tried to play with different versions but to no avail. Here are my relevant installed packages:
FWIW, I'm running Linux Mint 21 (derivative of Ubuntu 22.04).
Please let me know if you need any more info. Thanks.