Primary keys using sequences

10 views
Skip to first unread message

Stats Student

unread,
Jul 1, 2020, 7:06:42 PM7/1/20
to Django users
Hi, I am using a Postgres database and have been populating the primary key from a sequence. Is there any way to define this behavior through Django's ORM? Thanks.

Clive Bruton

unread,
Jul 1, 2020, 7:52:04 PM7/1/20
to django...@googlegroups.com
I think you are basically asking how to create a custom key. This was
discussed a few days ago, look for the thread "Custom Primary Key".


-- Clive
Reply all
Reply to author
Forward
0 new messages