def _format_zendesk_custom_fields(context):
 custom_fields = []
 for (key, val) in settings.ZENDESK_CUSTOM_FIELDS.items():
  if (key in context):
   custom_fields.append({'id': val, 'value': context[key]})
 return custom_fields

def _format_zendesk_custom_fields ( context ) : custom_fields = [ ] for ( key , val ) in settings . ZENDESK_CUSTOM_FIELDS . items ( ) : if ( key in context ) : custom_fields . append ( { 'id' : val , 'value' : context [ key ] } ) return custom_fields
format the data in context for compatibility with the zendesk api .