mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-20 06:08:35 +02:00
It seems I misunderstood the way to migrate to a custom user model for 1.0.0.
5 lines
183 B
Python
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"
|