#NEWLINE# def get_csrf_cookie( self , set_missing = True ) : #NEWLINE# #INDENT# "\n        Returns the current CSRF cookie value. If set_missing is True,\n        sets and returns the CSRF cookie value when it's missing.\n        \n        " #NEWLINE# cookie = self . cookies . get ( settings . CSRF_COOKIE_NAME ) #NEWLINE# if cookie : #NEWLINE# #INDENT# return cookie . value #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if set_missing : #NEWLINE# #INDENT# return self . set_csrf_cookie ( ) #NEWLINE# #UNINDENT# #UNINDENT# return None