def get_model(self):
        if self.profile is None:
            raise AttributeError('`self.profile` is `None`')
        return self.profile
Return the profile model or raise an ``AttributeError``
dataset/ETHPy150Open flashingpumpkin/django-socialregistration/socialregistration/mixins.py/ProfileMixin.get_model