-
Notifications
You must be signed in to change notification settings - Fork 557
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't initialise anonymous user on DB where it's not migrated
If the post-migrate signal is fired on a database which doesn't have the user model, skip the logic implemented `get_init_anonymous_user()`. This might be the case when a database router is used to have session somewhere else. Fixes #650
- Loading branch information
1 parent
5d49d22
commit 16e8713
Showing
2 changed files
with
40 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters