Files
modoboa/modoboa/lib/compat.py
T
Antoine Nguyen 76c124e679 Fixing migration scripts and the deploy command.
It seems I misunderstood the way to migrate to a custom user model
for 1.0.0.
2013-10-07 21:18:21 +02:00

5 lines
183 B
Python

from django.conf import settings
user_model_name = getattr(settings, 'AUTH_USER_MODEL', 'auth.User')
user_table_name = "auth_user" if user_model_name == "auth.User" else "core_user"