Skip to content

feat: Implement model.objects.get_or_create()#71

Merged
hakancelikdev merged 1 commit intomainfrom
feature/implement-get-or-create
Feb 19, 2026
Merged

feat: Implement model.objects.get_or_create()#71
hakancelikdev merged 1 commit intomainfrom
feature/implement-get-or-create

Conversation

@hakancelikdev
Copy link
Copy Markdown
Owner

Returns a tuple of (instance, created) where created is a boolean. If the record exists, returns it with created=False. If it doesn't exist, creates it and returns with created=True.

Closes #49

Returns a tuple of (instance, created) where created is a boolean.
If the record exists, returns it with created=False.
If it doesn't exist, creates it and returns with created=True.

Closes #49

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@hakancelikdev hakancelikdev merged commit 766039e into main Feb 19, 2026
14 checks passed
@hakancelikdev hakancelikdev deleted the feature/implement-get-or-create branch February 19, 2026 02:42
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.

Implement get_or_create

1 participant