sqlmodel
sqlmodel copied to clipboard
Updated tutorial003.py
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.
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.
📝 Docs preview for commit 8a24ae55e8c81b5fe0f435e55b0c5efefbb45291 at: https://630a8618b736cd44d1509d73--sqlmodel.netlify.app
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: