Skip to content

Commit ebe09b7

Browse files
bastbnlsynasius
authored andcommitted
Added notification concerning the migrations
This should prevent others from running into #405 while trying to create both a swappable instance and swap it out at once
1 parent 911f7b8 commit ebe09b7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/advanced_topics.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ Write something like this in your settings module::
4343

4444
OAUTH2_PROVIDER_APPLICATION_MODEL='your_app_name.MyApplication'
4545

46+
Be aware that, when you intend to swap the application model, you should create and run the
47+
migration defining the swapped application model prior to setting OAUTH2_PROVIDER_APPLICATION_MODEL.
48+
You'll run into models.E022 in Core system checks if you don't get the order right.
49+
4650
That's all, now Django OAuth Toolkit will use your model wherever an Application instance is needed.
4751

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

0 commit comments

Comments
 (0)