#NEWLINE# @ classmethod #NEWLINE# def get_collection_fields( cls ) : #NEWLINE# #INDENT# '\n        ' #NEWLINE# fields = [ ] #NEWLINE# for attribute in dir ( cls ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# attr_val = getattr ( cls , attribute ) #NEWLINE# attr_cls = attr_val . __class__ #NEWLINE# if issubclass ( attr_cls , ModelField ) : #NEWLINE# #INDENT# fields . append ( attr_val ) #NEWLINE# #UNINDENT# #UNINDENT# except : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# #UNINDENT# model_fields = cls . _model_meta_data . _fields #NEWLINE# for field_key in model_fields : #NEWLINE# #INDENT# field = attr_cls [ field_key ] #NEWLINE# fields . append ( field ) #NEWLINE# #UNINDENT# return fields