#NEWLINE# def _make_token_with_timestamp( self , user , timestamp ) : #NEWLINE# #INDENT# ts_b36 = int_to_base36 ( timestamp ) #NEWLINE# from django.utils.hashcompat import sha_constructor #NEWLINE# hash = sha_constructor ( ( ( ( ( settings . SECRET_KEY + unicode ( user . id ) ) + user . password ) + unicode ( user . last_login ) ) + unicode ( timestamp ) ) ) . hexdigest ( ) [ : : 2 ] #NEWLINE# return ( '%s-%s' % ( ts_b36 , hash ) )