#NEWLINE# def __new__( cls , name , bases , attrs ) : #NEWLINE# #INDENT# module_name = attrs [ '__module__' ] #NEWLINE# app_label = module_name . split ( '.' ) [ ( - 2 ) ] #NEWLINE# extensions = _find_extensions ( app_label , name ) #NEWLINE# bases = ( tuple ( extensions ) + bases ) #NEWLINE# return super ( ExtensibleModelBase , cls ) . __new__ ( cls , name , bases , attrs )