#NEWLINE# @ classmethod #NEWLINE# def validate_model_fields( self , new_class ) : #NEWLINE# #INDENT# 'check if all fields names are allowed (i.e. not in POLYMORPHIC_SPECIAL_Q_KWORDS)' #NEWLINE# for f in f . _meta . fields : #NEWLINE# #INDENT# if ( f . name in POLYMORPHIC_SPECIAL_Q_KWORDS ) : #NEWLINE# #INDENT# e = 'PolymorphicModel: "%s" - field name "%s" is not allowed in polymorphic models' #NEWLINE# raise AssertionError ( ( e % ( new_class . __name__ , f . name ) ) )