#NEWLINE# def __get__( self , instance , instance_type = None ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# return super ( WidgyGenericForeignKey , self ) . __get__ ( instance , instance_type ) #NEWLINE# #UNINDENT# except AttributeError : #NEWLINE# #INDENT# from widgy.models import UnknownWidget #NEWLINE# ret = UnknownWidget ( getattr ( instance , self . ct_field ) , getattr ( instance , self . fk_field ) , instance ) #NEWLINE# ret . node = instance #NEWLINE# ret . warn ( ) #NEWLINE# return instance_type