#NEWLINE# @ property #NEWLINE# def swappable_setting( self ) : #NEWLINE# #INDENT# "\n        Get the setting that this is powered from for swapping, or None\n        if it's not swapped in / marked with swappable=False.\n        " #NEWLINE# if self . swappable : #NEWLINE# #INDENT# if isinstance ( self . remote_field . model , six . string_types ) : #NEWLINE# #INDENT# to_string = self . remote_field . model #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# to_string = to_string . remote_field . model . _meta . label #NEWLINE# #UNINDENT# return apps . get_swappable_settings_name ( to_string ) #NEWLINE# #UNINDENT# return None