[Fixed]-Changed model DecimalField to Charfiled,and now form.is_valid() pass false in Django 1.8

1👍

I think you have mismatch between ints and chars.

If your field is CharField, then make the choices char (the first element in each tuple), not int (e.g. ‘0’ and not 0 or use letter).

Alternatively, change it to IntegerField.

BTW. You don’t need both fields and exclude in your form.

👤eran

Leave a comment