- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for have (0.13 sec)
-
docs/en/docs/tutorial/extra-models.md
# Extra Models Continuing with the previous example, it will be common to have more than one related model. This is especially the case for user models, because: * The **input model** needs to be able to have a password. * The **output model** should not have a password. * The **database model** would probably need to have a hashed password. !!! danger Never store user's plaintext passwords. Always store a "secure hash" that you can then verify.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu Apr 18 19:53:19 GMT 2024 - 7.7K bytes - Viewed (1) -
docs/pt/docs/tutorial/extra-models.md
Então, obtemos um modelo Pydantic a partir dos dados em outro modelo Pydantic. #### Desembrulhando um `dict` e palavras-chave extras E, então, adicionando o argumento de palavra-chave extra `hashed_password=hashed_password`, como em: ```Python UserInDB(**user_in.dict(), hashed_password=hashed_password) ``` ...acaba sendo como: ```Python
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Mar 22 01:42:11 GMT 2024 - 7.8K bytes - Viewed (0)