Skip to content
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

get_or_create method #106

Merged
merged 2 commits into from
Sep 11, 2021
Merged

Conversation

aminalaee
Copy link
Member

@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 join this conversation on GitHub. Already have an account? Sign in to comment
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