Closed beaulian closed 8 months ago
Discussed a while ago in https://github.com/marshmallow-code/marshmallow/pull/600.
Since order is not enforced, if it matters, use a single processor. Here, override make_instance
and add your processing in there.
OK, thanks
Hi,
I found a post_load method defined in
LoadInstanceMixin
class calledmake_instance
, if there exists a class inheriting SQLAlchemySchema and then I define a post_load method calledf(self, data, **kwargs)
, it will execute beforemake_instance
since the execution order is alphabetical according todir
builtin function. If the post_load method callst
, then it will execute after themake_instance
. As a result, parameterdata
in functionf
is a dict and is an object in functiong
.