divio/django-shop — pull request #234 by atheiste (2013-06-15 21:46:04+00:00)
Title: Cart views sanitize inputs

When someone puts non-numeric `quantity` into an AJAX call to add/update items in a cart the server raises Http500 and sends emails to admins.

I have added sanitization of inputs so that server returns correctly a BadResponse (Http400) and does not bother it's admins.