Composite keys as a foreign keys

How do we implement composite keys as a foreign keys using django models?

There’s no “official” support for composite/foreign keys; there’s been a few attempts to add it into Django, but it has never been able to be merged. I believe there are some hacks to make it somewhat possible, but I don’t quite know what those are (I personally design systems without composite keys anyway, as they tend to be quite fragile at large scale).