Browse Source

Update docs/en/docs/tutorial/sql-databases.md

Co-authored-by: Motov Yurii <[email protected]>
pull/14332/head
Krzysztof Czapla 8 months ago
committed by GitHub
parent
commit
581d111f86
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 1
      docs/en/docs/tutorial/sql-databases.md

1
docs/en/docs/tutorial/sql-databases.md

@ -289,7 +289,6 @@ We receive in the request a `HeroCreate` *data model*, and from it, we create a
This new *table model* `Hero` will have the fields sent by the client, and will also have an `id` generated by the database.
Then we return the same *table model* `Hero` as is from the function. But as we declare the `response_model` with the `HeroPublic` *data model*, **FastAPI** will use `HeroPublic` to validate and serialize the data.
7
{* ../../docs_src/sql_databases/tutorial002_an_py310.py ln[61:67] hl[61:63] *}
/// tip

Loading…
Cancel
Save