theKush / uexio

0 stars 0 forks source link

Coupon form error & enhancement #20

Closed theKush closed 10 years ago

theKush commented 10 years ago

Error: 'CouponForm' object has no attribute 'cleaned_data'

Enhancement: Check Discount amount < product price

mkwiatkowski commented 10 years ago

@theKush I can't trigger the error. Can you list the steps you take?

theKush commented 10 years ago

@mkwiatkowski Here is what I entered: code: kush Discount: 1 and then click update.

mkwiatkowski commented 10 years ago

The error only triggered when the first coupon was being created, that's why I couldn't see it the first time as I already had some coupons present.

Man, the validation on the discount price took me forever, it wasn't easy to do that in Django and I had to use a bit hacky solution.

jordanhudgens commented 10 years ago

A hacky solution is better than no solution at all ;) nice work!

Regards,

Jordan

On Apr 25, 2014, at 9:04 AM, Michal Kwiatkowski notifications@github.com wrote:

The error only triggered when the first coupon was being created, that's why I couldn't see it the first time as I already had some coupons present.

Man, the validation on the discount price took me forever, it wasn't easy to do that in Django and I had to use a bit hacky solution.

— Reply to this email directly or view it on GitHub.