django-authority/authority/utils.py

8 lines
No EOL
174 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