Get or create function #50
Labels
status: accepted
This issue has been accepted by the maintainers team for implementation
status: help wanted
This issue is tentatively accepted pending a volunteer committed to its implementation
Environment
Ability to either get or create an object like the Django ORM
Function that takes the identifiers of an object and either gets or create an object.
Current work around is wrap an object get in an exception of
ObjectNotFound
.Use Case
Currently using
try
andexcept
to catch if an object already exists.Expected use
The text was updated successfully, but these errors were encountered: