-
Notifications
You must be signed in to change notification settings - Fork 286
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ListType serialize_when_none=False doesn't seem to work #597
Comments
Can you please attach a sample script to explain the current and expected behavior? I am trying out the below where from schematics.models import Model
from schematics.types import StringType, ListType
class ModelB(Model):
field1 = ListType(StringType(), serialize_when_none=True)
field2 = ListType(StringType(), serialize_when_none=False)
model = ModelB()
print(model.serialize())
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
One of the fields in our model is ListType and is being set to None if though it is not being passed in.
The text was updated successfully, but these errors were encountered: