#NEWLINE# def get_email_context( self , user ) : #NEWLINE# #INDENT# token = self . token_generator . make_token ( user ) #NEWLINE# uid = encode_uid ( user . pk ) #NEWLINE# domain = ( django_settings . DJOSER . get ( 'DOMAIN' ) or get_current_site ( self . request ) . domain ) #NEWLINE# site_name = ( django_settings . DJOSER . get ( 'SITE_NAME' ) or get_current_site ( self . request ) . name ) #NEWLINE# return { #NEWLINE# #INDENT# 'user' : self , #NEWLINE# 'domain' : domain , #NEWLINE# 'site_name' : site_name , #NEWLINE# 'uid' : uid , #NEWLINE# 'token' : token , #NEWLINE# 'protocol' : ( 'https' if self . request . is_secure ( ) else 'http' ) , #NEWLINE# #UNINDENT# }