

def create_profile(self, user, save=False, **kwargs):
    '\n        Create a profile model.\n\n        :param user: A user object\n        :param save: If this is set, the profile will\n            be saved to DB straight away\n        :type save: bool\n        '
    profile = self.get_model()(user=user, **kwargs)
    if save:
        profile.save()
    return profile

dataset/ETHPy150Open flashingpumpkin/django-socialregistration/socialregistration/mixins.py ProfileMixin.create_profile/original