Skip to content
This repository was archived by the owner on Aug 19, 2025. It is now read-only.

get_or_create method#106

Merged
aminalaee merged 2 commits intoencode:masterfrom
aminalaee:get-or-create-method
Sep 11, 2021
Merged

get_or_create method#106
aminalaee merged 2 commits intoencode:masterfrom
aminalaee:get-or-create-method

Conversation

@aminalaee
Copy link
Contributor

@aminalaee aminalaee commented Sep 8, 2021

Fixes #53 .

note, created = await Note.objects.get_or_create(text="encode")

@aminalaee aminalaee merged commit edcabe0 into encode:master Sep 11, 2021
@aminalaee aminalaee deleted the get-or-create-method branch September 11, 2021 05:51
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add QuerySet-level convenience method: get_or_create

1 participant