Skip to content

Commit 2bcd00c

Browse files
committed
updated docs for custom Application model setting
1 parent 70acfcb commit 2bcd00c

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

docs/extending_application.rst

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,10 @@ module)::
3737
Then you need to tell Django OAuth Toolkit which model you want to use to represent applications.
3838
Write something like this in your settings module::
3939

40-
OAUTH2_PROVIDER = {
41-
'APPLICATION_MODEL': 'your_app_name.MyApplication',
42-
}
40+
OAUTH2_PROVIDER_APPLICATION_MODEL='your_app_name.MyApplication'
41+
4342
That's all, now Django OAuth Toolkit will use your model wherever an Application instance is needed.
43+
44+
**Notice:** `OAUTH2_PROVIDER_APPLICATION_MODEL` is the only setting variable that is not namespaced, this
45+
is because of the way Django currently implements swappable models.
46+
See issue #90 (https://github.com/evonove/django-oauth-toolkit/issues/90) for details

0 commit comments

Comments
 (0)