django-authority/authority/utils.py
2013-06-11 21:52:34 -05:00

11 lines
No EOL
200 B
Python

from django.contrib import auth
def get_user_class():
if hasattr(auth, "get_user_model"):
return auth.get_user_model()
else:
return auth.models.User
User = get_user_class()