#NEWLINE# def get_advanced_foreign_key_options_sql( self , foreign_key ) : #NEWLINE# #INDENT# query = super ( SQLitePlatform , self ) . get_advanced_foreign_key_options_sql ( foreign_key ) #NEWLINE# deferrable = ( foreign_key . has_option ( 'deferrable' ) and ( foreign_key . get_option ( 'deferrable' ) is not False ) ) #NEWLINE# if deferrable : #NEWLINE# #INDENT# query += ' DEFERRABLE' #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# query += ' NOT DEFERRABLE' #NEWLINE# #UNINDENT# query += ' INITIALLY' #NEWLINE# deferred = ( foreign_key . has_option ( 'deferred' ) and ( foreign_key . get_option ( 'deferred' ) is not False ) ) #NEWLINE# if query : #NEWLINE# #INDENT# query += ' DEFERRED' #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# query += ' IMMEDIATE' #NEWLINE# #UNINDENT# return query