mirror of
https://github.com/Mailu/Mailu.git
synced 2025-04-27 12:22:25 +02:00
Merge #3790
3790: Replace marshmallow missing with load_default r=mergify[bot] a=DjVinnii ## What type of PR? Enhancement ## What does this PR do? Replace the `missing` parameter with `load_default`. This changed in version 3.13.0 of marshmallow (Mailu currently uses 3.21.2) and `missing` will be removed in marshmallow 4. ## Prerequisites Before we can consider review and merge, please make sure the following list is done and checked. If an entry in not applicable, you can check it or remove it from the list. - [x] In case of feature or enhancement: documentation updated accordingly - [x] Unless it's docs or a minor change: add [changelog](https://mailu.io/master/contributors/workflow.html#changelog) entry file. Co-authored-by: Vincent Kling <vkling@vinniict.nl>
This commit is contained in:
commit
1c362b4af0
@ -1148,7 +1148,7 @@ class TokenSchema(BaseSchema):
|
||||
sibling = True
|
||||
|
||||
password = PasswordField(required=True, metadata={'model': models.User})
|
||||
hash_password = fields.Boolean(load_only=True, missing=False)
|
||||
hash_password = fields.Boolean(load_only=True, load_default=False)
|
||||
|
||||
|
||||
@mapped
|
||||
@ -1193,7 +1193,7 @@ class UserSchema(BaseSchema):
|
||||
fetches = fields.Nested(FetchSchema, many=True)
|
||||
|
||||
password = PasswordField(required=True, metadata={'model': models.User})
|
||||
hash_password = fields.Boolean(load_only=True, missing=False)
|
||||
hash_password = fields.Boolean(load_only=True, load_default=False)
|
||||
|
||||
|
||||
@mapped
|
||||
|
Loading…
x
Reference in New Issue
Block a user