Skip to content

Commit 05647a6

Browse files
In RenewalSchema, the argument "attribute" is used to indicate Marshmallow where to parse the value from, but the correct argument is "load_from".
1 parent 87d3bef commit 05647a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

connect/models/schemas.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ def make_object(self, data):
203203

204204

205205
class RenewalSchema(BaseSchema):
206-
from_ = fields.DateTime(attribute='from')
206+
from_ = fields.DateTime(load_from='from')
207207
to = fields.DateTime()
208208
period_delta = fields.Int()
209209
period_uom = fields.Str()

0 commit comments

Comments
 (0)