Another approach to ticket373:Add support for multiple-column primary keys

103 views
Skip to first unread message

Arisophy

unread,
Jan 29, 2021, 2:12:33 PM1/29/21
to django-d...@googlegroups.com
Hi, django developers.

Is anyone still interested in ticket373?

I'm gradually migrating legacy systems built with Ruby On Rails to Django. So made an extended Model class that supports composite primary keys. 


It worked nicely with a small amount of code.

FYI

Arisophy

Adam Johnson

unread,
Mar 15, 2021, 3:36:47 PM3/15/21
to django-d...@googlegroups.com
Hi Arisophy

I am interested in seeing composite PK's land in Django - I recently made a composite PK table for a client with a hack to make it work on Django. I'm sure others are interested too - I just guess at this point there is not so much momentum on the topic since it's so long running with no solution.

Your approach seems to be fairly limited, so perhaps it's gotten easier with recent ORM improvements. How well does your method work? Are there any limitations with which queries are supported, migrations, etc.?

Thanks,

Adam

--
You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-develop...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/CA%2B2LtkDBof5M9aG-QjgeUTa9EbXRCtnNEOCqqt2aT%3DeexN4DGA%40mail.gmail.com.


--
Adam

Arisophy

unread,
Mar 16, 2021, 4:50:36 AM3/16/21
to django-d...@googlegroups.com
Hi, Adam

Thanks for your reply.

I added limitations to GitHub.

https://github.com/Arisophy/django-compositepk-model/blob/main/README.md#limitations

For now, that's what I'm aware of.
And , I posted my blog about my implementation and opinion.


regards

Arisophy


2021年3月16日(火) 4:36 'Adam Johnson' via Django developers (Contributions to Django itself) <django-d...@googlegroups.com>:
Reply all
Reply to author
Forward
0 new messages