#NEWLINE# def save_custom_fields( self ) : #NEWLINE# #INDENT# definition = ( self . get_definition ( ) or CustomDataFieldsDefinition ( ) ) #NEWLINE# definition . field_type = self . field_type #NEWLINE# definition . domain = self . domain #NEWLINE# definition . fields = [ self . get_field ( field ) for field in self . form . cleaned_data [ 'data_fields' ] ] #NEWLINE# definition . save ( )