def get_user_model():
    """
    Wrapper for get_user_model with compatibility for 1.5
    """
    try:
        from django.contrib.auth import get_user_model as _get_user_model
    except ImportError:
        from django.contrib.auth.models import User
    else:
        User = _get_user_model()
    return User
