Skip to content

Conversation

samuelcolvin
Copy link
Member

@samuelcolvin samuelcolvin commented Aug 10, 2019

Change Summary

dict(model) as well as for name, value in model: now don't convert sub-models to dictionaries.

I've also completely rewritten the dict(), json(), copy(), pickle() section of the docs.

Related issue number

Fix #508

Checklist

  • Unit tests for the changes exist
  • Tests pass on CI and coverage remains at 100%
  • Documentation reflects the changes where applicable
  • change description file added to changes/ called <pull request or issue id>-<github username>.rst,
    see changes/README.md for details
    on the format

@samuelcolvin samuelcolvin changed the title fix iteration to not convert to dict by default alter the behaviour of dict(model) so that sub-models are nolonger converted to dictionaries Aug 10, 2019
@codecov
Copy link

codecov bot commented Aug 10, 2019

Codecov Report

Merging #733 into master will not change coverage.
The diff coverage is 100%.

@@          Coverage Diff          @@
##           master   #733   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files          15     15           
  Lines        2718   2718           
  Branches      534    534           
=====================================
  Hits         2718   2718

@samuelcolvin samuelcolvin merged commit 82ef45c into master Aug 12, 2019
@samuelcolvin samuelcolvin deleted the fix-iteration branch August 12, 2019 10:31
alexdrydew pushed a commit to alexdrydew/pydantic that referenced this pull request Dec 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Question] Looping through a nested model object returns dictionaries?
1 participant