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
I have the problem that when I create a new object via Status.objects.create(code=1, name="12345678901"), I get an error message django.db.utils.DataError: ERROR: Value too long for type character varying(10), but the status object is still created. In my opinion, the status object must not even be created if the max length of name is not correct. Do you have the same problem or is there something wrong with my settings?
I have the problem that when I create a new object via
Status.objects.create(code=1, name="12345678901")
, I get an error messagedjango.db.utils.DataError: ERROR: Value too long for type character varying(10)
, but the status object is still created. In my opinion, the status object must not even be created if the max length ofname
is not correct. Do you have the same problem or is there something wrong with my settings?Model:
The text was updated successfully, but these errors were encountered: