class User(models.Model):
    
    def __getattr__(self, attr):
        for profile in self.profiles:
            try:
                return getattr(profile, attr)
            except AttributeError:
                continue
        raise AttributeError