def _get_profile(self):
 if (not hasattr(self, u'_profile')):
  self._profile = Profile.objects.get_or_create(user=self)[0]
  self._profile.user = self
 if (self._profile.extra_data is None):
  self._profile.extra_data = {}
 return self._profile

def _get_profile ( self ) : if ( not hasattr ( self , u'_profile' ) ) : self . _profile = Profile . objects . get_or_create ( user = self ) [ 0 ] self . _profile . user = self if ( self . _profile . extra_data is None ) : self . _profile . extra_data = { } return self . _profile
get the profile for the user .