#NEWLINE# def delete( self , session_key = None ) : #NEWLINE# #INDENT# if ( self is None ) : #NEWLINE# #INDENT# if ( self . session_key is None ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# session_key = self . session_key #NEWLINE# #UNINDENT# try : #NEWLINE# #INDENT# Session . objects . get ( session_key = session_key ) . delete ( ) #NEWLINE# #UNINDENT# except Session . DoesNotExist : #NEWLINE# #INDENT# pass