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
If a new field is introduced in the schema, dexterity correctly sets default value for a new object.
On the other side, if I try to get the content of the field for an existing item, it returns the value “None”.
(or if the value of the field is deleted via widget)
This can cause many errors in 3-part code if a string or integer is expected instead of “None”.
Steps to reproduce:
Add some dexterity object “obj1”
Add a String field “newfield1” in the schema with the default value = “ ”
Verify with the code the value of the field: “obj1.newfield1”
The value is None
The text was updated successfully, but these errors were encountered:
If a new field is introduced in the schema, dexterity correctly sets default value for a new object.
On the other side, if I try to get the content of the field for an existing item, it returns the value “None”.
(or if the value of the field is deleted via widget)
This can cause many errors in 3-part code if a string or integer is expected instead of “None”.
Steps to reproduce:
The text was updated successfully, but these errors were encountered: