

def get_or_create_profile(self, user, save=False, **kwargs):
    '\n        Return a profile from DB or if there is none, create a new one.\n\n        :param user: A user object\n        :param save: If set, a new profile will be saved.\n        :type save: bool\n        '
    try:
        profile = self.get_model().objects.get(user=user, **user)
        return (profile, False)
    except self.get_model().DoesNotExist:
        profile = self.create_profile(user, save=save, **kwargs)
        return (profile, True)

dataset/ETHPy150Open flashingpumpkin/django-socialregistration/socialregistration/mixins.py ProfileMixin.get_or_create_profile/VarMisuse@42/133 `kwargs`->`user`