#NEWLINE# def __str__( self ) : #NEWLINE# #INDENT# '\n            We have to override this as username is nullable. We either return the email\n            address, or if there is a username, we return "email (username)".\n        ' #NEWLINE# username = self . get_username ( ) #NEWLINE# if username : #NEWLINE# #INDENT# return '{} ({})' . format ( six . text_type ( self . email ) , six . text_type ( username ) ) #NEWLINE# #UNINDENT# return six . text_type ( self . email )