def get_user_name(self):
    if self.first_name or self.last_name:
        return self.first_name + ' ' + self.last_name
return self.username
User.add_to_class('get_user_name', get_user_name)
Как пропатчить Django?