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 a model with nullable fields. Upgrading from 3.14 to 3.15 I'm getting this error: AssertionError: You cannot call .save() on a serializer with invalid data.
When I print the serializer.errors after serializer.is_valid(), it says those fields are required. Is it possible that this is a bug, or do I have to manually override the field in the serializer to have the required=False kwarg?
The text was updated successfully, but these errors were encountered:
I have a model with nullable fields. Upgrading from 3.14 to 3.15 I'm getting this error:
AssertionError: You cannot call .save() on a serializer with invalid data.
When I print the
serializer.errors
afterserializer.is_valid()
, it says those fields are required. Is it possible that this is a bug, or do I have to manually override the field in the serializer to have therequired=False
kwarg?The text was updated successfully, but these errors were encountered: