Skip to content Skip to sidebar Skip to footer

Django Modelform Not Saving Input Choices And Not Returning Errors

I have a modelform that only works(saves input data to database) if none of the fields has choices. When i introduce choices, i don't get any errors and the form seems to be valid

Solution 1:

The problem lies in the fact that OP is using CharField for weekday data type, but the choices returned from a function are defined as integers. Since they are not compatible, the data could not be saved.


Post a Comment for "Django Modelform Not Saving Input Choices And Not Returning Errors"