mirror of
https://github.com/zulip/zulip.git
synced 2026-06-24 21:08:25 +08:00
Django's South migrations support for setting up a new database doesn't properly handle AUTH_USER_MODEL changing over time. Fix this by having the initial migration be run with AUTH_USER_MODEL set to the default value. (imported from commit c373db9edc61f26527c486c741f8e870614600e3)
10 lines
454 B
Python
10 lines
454 B
Python
from settings import *
|
|
|
|
# South doesn't support an application migrating from having not
|
|
# having a non-default AUTH_USER_MODEL to having one because in the
|
|
# latter case it doesn't emit an auth_user table, but our migrations
|
|
# expect it to exist at the beginning and then go away (and thus will
|
|
# fail). So we change this back to the default for running our
|
|
# initial syncdb so that we still emit an auth_user table then.
|
|
AUTH_USER_MODEL = "auth.User"
|