Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG Custom User Model in Django E039 #238

Open
teury opened this issue Aug 24, 2023 · 1 comment
Open

BUG Custom User Model in Django E039 #238

teury opened this issue Aug 24, 2023 · 1 comment

Comments

@teury
Copy link

teury commented Aug 24, 2023

This happens when you have a custom user model in django

<class 'avatar.admin.AvatarAdmin'>: (admin.E039) An admin for model 
"User" has to be registered to be referenced by AvatarAdmin.autocomplete_fields.

autocomplete_fields = ("user",)

Apparently it was caused by this commit. #219

@johanneswilm
Copy link
Member

Hey @teury,
it should be possible to use a custom user model here - I have done that. But you need to register the user model in the admin somewhere. Else it doesn't know how to show the admin screen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants