MediaMath / t1-python

Python SDK for MediaMath Platform APIs
https://developer.mediamath.com/
Apache License 2.0
18 stars 30 forks source link

support for deleting fields #167

Closed FodT closed 6 years ago

FodT commented 6 years ago

this fixes a few issues with the __delattr__ override and also allows for blank fields to be posted in the formdata after deleting the attribute. Wraps the value in a 'Deleted' class which returns a blank string.

del strategy.bid_aggressiveness
strategy.save() #bid_aggressiveness is now reset, since a blank value was sent