zulip/humbug/setup_hack_settings.py
Tim Abbott c65f37c910 do-destroy-rebuild-database: Fix migration with AUTH_USER_MODEL.
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)
2013-04-04 17:39:01 -04:00

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"