diff --git a/marshmallow_jsonapi/__init__.py b/marshmallow_jsonapi/__init__.py index 16f6e95..c8f7e2e 100755 --- a/marshmallow_jsonapi/__init__.py +++ b/marshmallow_jsonapi/__init__.py @@ -1,5 +1,5 @@ from .schema import Schema, SchemaOpts -__version__ = "0.24.0" +__version__ = "0.24.1" __license__ = "MIT" __all__ = ("Schema", "SchemaOpts") diff --git a/marshmallow_jsonapi/fields.py b/marshmallow_jsonapi/fields.py index cc54ab2..f147981 100644 --- a/marshmallow_jsonapi/fields.py +++ b/marshmallow_jsonapi/fields.py @@ -295,10 +295,6 @@ def _serialize_included(self, value): else: result = self.schema.dump(value) - data = result - - item = data["data"] - result = self.schema.dump(value) item = result["data"] self.root.included_data[(item["type"], item["id"])] = item for key, value in self.schema.included_data.items(): diff --git a/pyproject.toml b/pyproject.toml index bfb5fdf..153892c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "marshmallow-jsonapi" -version = "0.24.0" +version = "0.24.1" description = "marshmallow-jsonapi provides a simple way to produce JSON API-compliant data in any Python web framework." authors = ["Your Name "] license = "MIT"