#NEWLINE# def bind_to_model( self , model ) : #NEWLINE# #INDENT# if ( django . VERSION >= ( 1 , 9 ) ) : #NEWLINE# #INDENT# related = getattr ( model , self . relation_name ) . rel #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# related = getattr ( model , self . relation_name ) . related #NEWLINE# #UNINDENT# return type ( str ( '_InlinePanel' ) , ( BaseInlinePanel , ) , { #NEWLINE# #INDENT# 'model' : model , #NEWLINE# 'relation_name' : self . relation_name , #NEWLINE# 'related' : related , #NEWLINE# 'panels' : model . panels , #NEWLINE# 'heading' : self . label , #NEWLINE# 'help_text' : self . help_text , #NEWLINE# 'min_num' : self . min_num , #NEWLINE# 'max_num' : self . max_num , #NEWLINE# #UNINDENT# } )