Skip to content

v3.0.30

Compare
Choose a tag to compare
@victoriagrey victoriagrey released this 25 Apr 20:27
· 203 commits to master since this release

Multi-entity update options, product-specific authorization, and explicit file closing

  • Adds an optional dictionary parameter multi_entity_update_modes to use add, remove, and set modes when calling update() on multi-entity fields. This allows for updating multi-entity fields without the need for pulling down the field's data and pushing back up the entire set. For example, when specifying an addition to Sequence.shots, we could specify:

    sg.update("Sequence", 1234, {"shots":[{"type":"Shot", "id":123}]}, 
               multi_entity_update_modes={"shots":"add"})
    
  • Adds explicit file handler closing to download_attachment.

  • Adds basic find() ordering support to mockgun.

  • Allows for product specific authorization parameters.