Skip to content

Commit

Permalink
fix: Wrap dicts everywhere (#135)
Browse files Browse the repository at this point in the history
* fix: Wrap dicts everywhere

* Revert real one
  • Loading branch information
faucomte97 authored Sep 18, 2024
1 parent 7436ae9 commit 1499cf9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion codeforlife/tests/model_view_set.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 1499cf9

Please sign in to comment.