def get_absolute_url(self):
    return '/users/%s/' % urlquote(self.pk)

def get_full_name(self):
    """
        Returns the first_name plus the last_name, with a space in between.
        """
full_name = '%s %s' % (self.first_name, self.last_name)
return full_name.strip()

def get_short_name(self):
    """Returns the short name for the user."""
return self.first_name
Set email as username in Django 1.5