From 1499cf996692600a4fdb960a09a589546f86ec63 Mon Sep 17 00:00:00 2001 From: Florian Aucomte Date: Wed, 18 Sep 2024 17:04:50 +0100 Subject: [PATCH] fix: Wrap dicts everywhere (#135) * fix: Wrap dicts everywhere * Revert real one --- codeforlife/tests/model_view_set.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codeforlife/tests/model_view_set.py b/codeforlife/tests/model_view_set.py index 4ce3449..855bbf0 100644 --- a/codeforlife/tests/model_view_set.py +++ b/codeforlife/tests/model_view_set.py @@ -729,7 +729,7 @@ def assert_serialized_model_equals_json_model( model_serializer = model_view_set.get_serializer(model) # Serialize the model. - serialized_model = model_serializer.data + serialized_model = dict(model_serializer.data) # Recursively convert all datetimes to strings. def datetime_values_to_representation(data: DataDict):