{"push_id":973785054,"size":2,"distinct_size":0,"ref":"refs/heads/upstream","head":"398927526bea2f72bfcb11e8352f823b4f6702d6","before":"85ddcd6518349897db1dd89445c6091ca52ef4db","commits":[{"sha":"1234497f6141c556c039c6abd78007a2bd84b0f5","author":{"email":"7101cec54bfecadedb7f100a165c3f1d3a7e233c@gmail.com","name":"Craig Weber"},"message":"Prevent trying to save a negative quantity to a Basket\n\nbasket.Line.quantity is a positive integer field, but the quantity sumation in\nbasket.Basket.add_product made it possible to try and save negative values. This\nmakes add_product never go below 0-quantity, thereby preventing a db exception\nfrom being thrown. Also adds a test for the described behavior.","distinct":false,"url":"https://api.github.com/repos/bryson/django-oscar/commits/1234497f6141c556c039c6abd78007a2bd84b0f5"},{"sha":"398927526bea2f72bfcb11e8352f823b4f6702d6","author":{"email":"d05f3729c8bc796dbabc65e313431ec613168bbd@gmail.com","name":"Michael van Tellingen"},"message":"Merge pull request #2000 from crgwbr/prevent_negative_quantity\n\nPrevent trying to save a negative quantity to a Basket","distinct":false,"url":"https://api.github.com/repos/bryson/django-oscar/commits/398927526bea2f72bfcb11e8352f823b4f6702d6"}]}