def _get_profile(self):
    if not hasattr(self, '_profile'):
        self._profile = Profile.objects.get(user=self)
        self._profile.user = self

    return self._profile
Get the profile for the User.
dataset/ETHPy150Open reviewboard/reviewboard/reviewboard/accounts/models.py/_get_profile