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
EDIT: This just happened in production as well, so it's not a model-mommy/test problem. Production: None is the default database value of a separated values field, when it should be ''.
With Django < 2 and model-mommy, default value for the separated values field is incorrectly None (rather than ''). Now model-mommy doesn't actually support separated values field, but if it has blank=True it used to work anyways. I tried to pinpoint the exact reason but I'm not sure where it is.
EDIT: This just happened in production as well, so it's not a model-mommy/test problem. Production:
None
is the default database value of a separated values field, when it should be''
.With Django < 2 and model-mommy, default value for the separated values field is incorrectly
None
(rather than''
). Now model-mommy doesn't actually support separated values field, but if it hasblank=True
it used to work anyways. I tried to pinpoint the exact reason but I'm not sure where it is.To reproduce:
With 0.5 this resulted in the following insert query:
With 0.6 this results in the following insert query:
The
None
value violates the separated value field's NOT NULL constraint, making the insertion fail.The text was updated successfully, but these errors were encountered: