Django Save Object based on PK and another field
问题 I am trying to use a partitioned table in postgresql together with a Django installation. From Googleing the subject, I found out, that Django does not support partitioning by itself, so I did the partitioning of the table myself. I partition my table based on a second field which is a foreign key on another table. The basic model setup is like so: class Event(models.Model): id = models.AutoField(primary_key=True) device = models.ForeignKey("Device") ... (More Fields) I have Partitioned the