You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Have custom manager set on User model which filters out certain types of users (sometimes this is desirable). There is a second, all_objects manager which is the default one and doesn't filter anything. rest_framework_simplejwt.authentication.JWTAuthentication.get_user() is hard-coded to use User.objects.
Solution
Add api_settings option to configure this, default being objects.
The text was updated successfully, but these errors were encountered:
Problem
Have custom manager set on
User
model which filters out certain types of users (sometimes this is desirable). There is a second,all_objects
manager which is the default one and doesn't filter anything.rest_framework_simplejwt.authentication.JWTAuthentication.get_user()
is hard-coded to useUser.objects
.Solution
Add
api_settings
option to configure this, default beingobjects
.The text was updated successfully, but these errors were encountered: