sqlmodel icon indicating copy to clipboard operation
sqlmodel copied to clipboard

Updated tutorial003.py

Open antoniocali opened this issue 3 years ago • 0 comments

Looking at the Hero Class, it seems that Relationship Weapon back_populates to owner. But in the Weapon class, there's no owner field, but hero.

antoniocali avatar Apr 08 '22 12:04 antoniocali

Codecov Report

Merging #297 (8a24ae5) into main (04b8b3e) will not change coverage. The diff coverage is 100.00%.

:exclamation: Current head 8a24ae5 differs from pull request most recent head bcdfee6. Consider uploading reports for the commit bcdfee6 to get more accurate results

@@           Coverage Diff           @@
##             main     #297   +/-   ##
=======================================
  Coverage   97.58%   97.58%           
=======================================
  Files         182      182           
  Lines        6054     6054           
=======================================
  Hits         5908     5908           
  Misses        146      146           
Impacted Files Coverage Δ
...ationship_attributes/back_populates/tutorial003.py 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

codecov[bot] avatar Aug 27 '22 20:08 codecov[bot]

📝 Docs preview for commit 8a24ae55e8c81b5fe0f435e55b0c5efefbb45291 at: https://630a8618b736cd44d1509d73--sqlmodel.netlify.app

github-actions[bot] avatar Aug 27 '22 21:08 github-actions[bot]

Thank you! Good catch! This was solved in https://github.com/tiangolo/sqlmodel/pull/120, so I'll close this one now. But thanks for the effort! :cake:

tiangolo avatar Aug 27 '22 21:08 tiangolo