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

Add QuerySet-level convenience method: get_or_create #53

@malikoth

Description

@malikoth

This is labeled as a convenience function, and I found it useful to have around many times when I was working in Django. I think it would be great to duplicate here.

Reference: https://docs.djangoproject.com/en/3.0/ref/models/querysets/#get-or-create

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions