

def _abstract_siteuser():
    custom_siteuser = getattr(settings, 'SOCIAL_LOGIN_ABSTRACT_SITEUSER', None)
    if (not custom_siteuser):
        from .abstract_models import AbstractBaseSiteUser
        return AbstractBaseSiteUser
    (_app, _model) = custom_siteuser.split('.')
    _module = __import__(('%s.models' % _app), fromlist=[_model])
    _model = getattr(_module, _model)
    if (not _model._meta.abstract):
        raise AttributeError(('%s must be abstract model' % custom_siteuser))
    return _model

dataset/ETHPy150Open yueyoum/django-social-login/social_login/models.py _abstract_siteuser/original