-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Fixes: #14840 - Forces API to use django user model instead of proxy model #14881
Conversation
This reverts commit 1d784cf.
I think this will be a much more acceptable resolution to the problem, it does introduce another API endpoint (but maintains all the filters from Alternatively, we could swap the proxy model in the ContentTypeManager for the actual user model |
We shouldn't add a redundant API endpoint for the same model. Instead, we can tweak the logic in Ultimately this problem should be side-stepped by the introduction of a proper custom user model in v4.0 under #12795. |
You are absolutely correct, that is a much easier way to handle that. Made a tweak to swap the proxy model to the user model and it looks to be good now. |
This doesn't appear to fully resolve #14840. Although you can now edit an object with a custom field pointing to the User model, attempting to save it raises a
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @DanSheps!
Fixes: #14840 - Forces API to use django user model instead of proxy model