(self)
return ' '.join(user_strings)
Returns a string representation of the username.
Returns a string representation of the username.
Returns a string representation of the username .
def __str__(self):
        """Returns a string representation of the username."""
        user_strings = [self.username]

        if self.is_active:
            user_strings.append('[active]')
        else:
            user_strings.append('[inactive]')

        if self.is_admin:
            user_strings.append('<is admin>')

        return ' '.join(user_strings)
def __str__ ( self ) : user_strings = [ self . username ] if self . is_active : user_strings . append ( '[active]' ) else : user_strings . append ( '[inactive]' ) if self . is_admin : user_strings . append ( '<is admin>' ) return ' ' . join ( user_strings )