Skip to content

Commit

Permalink
Added notification concerning the migrations
Browse files Browse the repository at this point in the history
This should prevent others from running into jazzband#405 while trying to create both a swappable instance and swap it out at once
  • Loading branch information
bastbnl authored and maryokhin committed Nov 14, 2016
1 parent 340258f commit 4ef9093
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/advanced_topics.rst
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ Write something like this in your settings module::

OAUTH2_PROVIDER_APPLICATION_MODEL='your_app_name.MyApplication'

Be aware that, when you intend to swap the application model, you should create and run the
migration defining the swapped application model prior to setting OAUTH2_PROVIDER_APPLICATION_MODEL.
You'll run into models.E022 in Core system checks if you don't get the order right.

That's all, now Django OAuth Toolkit will use your model wherever an Application instance is needed.

**Notice:** `OAUTH2_PROVIDER_APPLICATION_MODEL` is the only setting variable that is not namespaced, this
Expand Down

0 comments on commit 4ef9093

Please sign in to comment.