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
The documentation from 566fe67 is super confusing, because it refers to the setting as OAUTH2_PROVIDER_APPLICATION_MODEL but later refers to it as APPLICATION_MODEL.
Is this two settings? Is it one setting, and - if so - which name is it? I think that it's intended to be a single setting called APPLICATION_MODEL, but not 100% sure.
EDIT: It actually looks like you need to set both settings or else it won't work, even though they have the same values
The text was updated successfully, but these errors were encountered:
OAUTH2_PROVIDER_APPLICATION_MODEL field should be used in your django project setting file which is later assigned to APPLICATION_MODEL field of oauth2_provider settings module.
What you can do in swapped model is reference OAUTH2_PROVIDER_APPLICATION_MODEL from your django project settings.
from django.conf import settings
from django.db import models
class Grant(AbstractGrant):
application = models.ForeignKey(settings.OAUTH2_PROVIDER_APPLICATION_MODEL, related_name='grants', on_delete=models.CASCADE)
The documentation from 566fe67 is super confusing, because it refers to the setting as
OAUTH2_PROVIDER_APPLICATION_MODEL
but later refers to it asAPPLICATION_MODEL
.Is this two settings? Is it one setting, and - if so - which name is it? I think that it's intended to be a single setting called
APPLICATION_MODEL
, but not 100% sure.EDIT: It actually looks like you need to set both settings or else it won't work, even though they have the same values
The text was updated successfully, but these errors were encountered: