File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -960,6 +960,7 @@ class Model(HashModel):
960
960
first_name : str
961
961
last_name : str
962
962
age : int = Field (default = 18 )
963
+ bio : Optional [str ] = Field (default = None )
963
964
964
965
class Child (Model ):
965
966
other_name : str
@@ -974,3 +975,4 @@ class Child(Model):
974
975
rematerialized = await Child .find (Child .pk == m .pk ).first ()
975
976
976
977
assert rematerialized .age == 18
978
+ assert rematerialized .bio is None
Original file line number Diff line number Diff line change @@ -1167,6 +1167,7 @@ class Model(JsonModel):
1167
1167
first_name : str
1168
1168
last_name : str
1169
1169
age : int = Field (default = 18 )
1170
+ bio : Optional [str ] = Field (default = None )
1170
1171
1171
1172
class Child (Model ):
1172
1173
is_new : bool = Field (default = True )
@@ -1181,3 +1182,4 @@ class Child(Model):
1181
1182
1182
1183
assert rematerialized .age == 18
1183
1184
assert rematerialized .age != 19
1185
+ assert rematerialized .bio is None
You can’t perform that action at this time.
0 commit comments