📝 Update FastAPI tutorial docs to use the new model.sqlmodel_update() instead of old setattr() (#1117)

Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
This commit is contained in:
Joel Pérez Izquierdo
2025-04-27 14:02:41 +01:00
committed by GitHub
parent 990f8f407f
commit bc67b582b6
17 changed files with 23 additions and 44 deletions

View File

@ -46,7 +46,7 @@ Let's now add the **path operations** for teams.
These are equivalent and very similar to the **path operations** for the **heroes** we had before, so we don't have to go over the details for each one, let's check the code.
{* ./docs_src/tutorial/fastapi/teams/tutorial001_py310.py ln[136:190] hl[136:142,145:153,156:161,164:180,183:190] *}
{* ./docs_src/tutorial/fastapi/teams/tutorial001_py310.py ln[135:188] hl[135:141,144:152,155:160,163:178,181:188] *}
## Using Relationships Attributes