New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow for passing keyword arguments to from_orm #3375
Closed
Closed
Commits on Oct 31, 2021
-
Allow for passing keyword arguments to from_orm:
You can already use Field(alias='whatever') on the model to allow for converting from ORM models that might be named differently, but this means that the model knows about the existence of a database (or at least it's columns), which seems like a leaky abstraction. With this modification though, the database will be the one to handle the naming conflict, which keeps the model more succinct.
Configuration menu - View commit details
-
Copy full SHA for 3f94791 - Browse repository at this point
Copy the full SHA 3f94791View commit details -
Configuration menu - View commit details
-
Copy full SHA for c59f6c4 - Browse repository at this point
Copy the full SHA c59f6c4View commit details
Commits on Dec 12, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 52f9075 - Browse repository at this point
Copy the full SHA 52f9075View commit details -
Configuration menu - View commit details
-
Copy full SHA for 651fcce - Browse repository at this point
Copy the full SHA 651fcceView commit details
Commits on Dec 22, 2021
-
Configuration menu - View commit details
-
Copy full SHA for f20a579 - Browse repository at this point
Copy the full SHA f20a579View commit details
Commits on Jan 7, 2022
-
Configuration menu - View commit details
-
Copy full SHA for a5ae379 - Browse repository at this point
Copy the full SHA a5ae379View commit details
Commits on Mar 3, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 46a151c - Browse repository at this point
Copy the full SHA 46a151cView commit details
Commits on Jun 26, 2022
-
Configuration menu - View commit details
-
Copy full SHA for f65e6fd - Browse repository at this point
Copy the full SHA f65e6fdView commit details
Commits on Aug 5, 2022
-
Merge branch 'master' of https://github.com/samuelcolvin/pydantic int…
…o from_orm_kwargs
Configuration menu - View commit details
-
Copy full SHA for 371c1a3 - Browse repository at this point
Copy the full SHA 371c1a3View commit details -
Configuration menu - View commit details
-
Copy full SHA for e4623f6 - Browse repository at this point
Copy the full SHA e4623f6View commit details
Commits on Aug 9, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 0f6f698 - Browse repository at this point
Copy the full SHA 0f6f698View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2ac817e - Browse repository at this point
Copy the full SHA 2ac817eView commit details
Commits on Aug 16, 2022
-
Configuration menu - View commit details
-
Copy full SHA for bcad29c - Browse repository at this point
Copy the full SHA bcad29cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 591d591 - Browse repository at this point
Copy the full SHA 591d591View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.