Skip to content

feat: add an AutoField that accepts a named sequence #270

@christophehenry

Description

@christophehenry

It appears Postgres allows to create sequences that are shared between tables. This may be a fringe use case but I just met it: the necessity to share a qequence between two tables so that we can't have a record with the same primary key between these two tables. Right now, AFAIK, Django generates a new sequence for each AutoField or BigAutoField. It would be nice to add a NamedSequenceAutoField that allows to name the sequence to use and share it between tables.

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