Lucterios2 / django_auth_ldap3_ad

Simple LDAP/AD auth module for django
https://pypi.python.org/pypi/django-auth-ldap3-ad
GNU General Public License v3.0
45 stars 25 forks source link

Use get_user_model to enable custom user models #3

Closed weissglut-dev closed 8 years ago

weissglut-dev commented 8 years ago

When the Usermodel is customized you should not refer to User directly but user get_user_model() see also: https://docs.djangoproject.com/en/1.9/topics/auth/customizing/#referencing-the-user-model

So I replaced all references to User with get_user_model()and got it working.

Regards Ludwig