On 2 Jul 2020, at 00:06, Stats Student wrote:
> 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
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
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/762F7935-2DA1-4334-B706-48675E8E5D2A%40indx.co.uk.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment