You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MySQL doesn't have a dedicated bool type, so Django has to store bools as an integer. But models.BooleanField automatically converts the integer back to a bool after loading from the database; this is expected behaviour
MySQL doesn't have a dedicated bool type, so Django has to store bools as an integer. But models.BooleanField automatically converts the integer back to a bool after loading from the database; this is expected behaviour
mysql table struct,the column is bit type:
mysql data:
django model :
drf serializer:
http response:
my database value is 0,but it always return ”true“,i don't know why.
The text was updated successfully, but these errors were encountered: