Bishwas-py / djapy

No bullshit, Django Rest API Framework
https://djapy.io
61 stars 3 forks source link

Use `model_dump, json` instead of `dict()` in `core/parser.py:105` #14

Closed Bishwas-py closed 6 months ago

Bishwas-py commented 6 months ago

Use model_dump, json instead of dict() in core/parser.py:105

- destructured_object_data = validated_obj.dict()
+ destructured_object_data = validated_obj.model_dump(mode="json")
Bishwas-py commented 6 months ago

40833eaddbbb3ce1343d99a65effcd0823b4157d solved.