django-cms / django-filer

File and Image Management Application for django
https://django-filer.readthedocs.io/
Other
1.73k stars 574 forks source link

Does'nt work well with a CUSTOM AUTH_USER_MODEL #1337

Closed svandeneertwegh closed 1 year ago

svandeneertwegh commented 1 year ago

Environment: Python 3.9.16 Django 3.2 Django cms 4.0.0.dev11

Goal: Using a custom User model. I've set AUTH_USER_MODEL = 'users.Account'

Problem: django-filer raises two errors when using it with a custom AUTH_USER_MODEL.

Error:


<class 'filer.admin.folderadmin.FolderAdmin'>: (admin.E039) An admin for model "Account" has to be registered to be referenced by FolderAdmin.autocomplete_fields.
<class 'filer.admin.permissionadmin.PermissionAdmin'>: (admin.E039) An admin for model "Account" has to be registered to be referenced by PermissionAdmin.autocomplete_fields.

System check identified 2 issues (0 silenced).```