Skip to content
This repository was archived by the owner on Jan 28, 2022. It is now read-only.

Commit b42c7f6

Browse files
authored
Merge pull request #62 from lmignon/fix-compatiility-3.0.0
Fix compatability with version 3.0.0 of Marshmallow
2 parents 265e5d5 + 1320f55 commit b42c7f6

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ python:
1111

1212
env:
1313
- MARSHMALLOW_VERSION=2.19.2
14-
- MARSHMALLOW_VERSION=3.0.0rc6
14+
- MARSHMALLOW_VERSION=3.0.0
1515

1616
matrix:
1717
exclude:
1818
- python: "2.7"
19-
env: MARSHMALLOW_VERSION=3.0.0rc6
19+
env: MARSHMALLOW_VERSION=3.0.0
2020

2121
install:
2222
- pip install marshmallow==$MARSHMALLOW_VERSION

marshmallow_objects/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525

2626
@marshmallow.post_load
27-
def __make_object__(self, data):
27+
def __make_object__(self, data, **kwargs):
2828
return self.__model_class__(__post_load__=True, __schema__=self, **data)
2929

3030

tests/test_models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class A(marshmallow.Model):
1818
tag_field = marshmallow.fields.Str(load_only=True)
1919

2020
@marshmallow.post_load
21-
def set_tag_field(self, data):
21+
def set_tag_field(self, data, **kwargs):
2222
data.tag_field = data.test_field
2323
return data
2424

0 commit comments

Comments
 (0)