#NEWLINE# def generate_security_hash( self , content_type , object_pk , timestamp ) : #NEWLINE# #INDENT# '\n        Generate a HMAC security hash from the provided info.\n        ' #NEWLINE# info = ( content_type , object_pk , timestamp ) #NEWLINE# key_salt = 'django.contrib.forms.CommentSecurityForm' #NEWLINE# value = '-' . join ( info ) #NEWLINE# return salted_hmac ( key_salt , value ) . hexdigest ( )