-
Notifications
You must be signed in to change notification settings - Fork 30
Get or create function #50
Copy link
Copy link
Closed
Labels
status: acceptedThis issue has been accepted by the maintainers team for implementationThis issue has been accepted by the maintainers team for implementationstatus: help wantedThis issue is tentatively accepted pending a volunteer committed to its implementationThis issue is tentatively accepted pending a volunteer committed to its implementation
Metadata
Metadata
Assignees
Labels
status: acceptedThis issue has been accepted by the maintainers team for implementationThis issue has been accepted by the maintainers team for implementationstatus: help wantedThis issue is tentatively accepted pending a volunteer committed to its implementationThis issue is tentatively accepted pending a volunteer committed to its implementation
Type
Fields
Give feedbackNo fields configured for issues without a type.
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
tryandexceptto catch if an object already exists.Expected use