how to make a django model with no id column and primary key?

38 Views Asked by At

i am working with big data and i can have an extra column like id. i cant put the primary key to any other single column, because of duplicate. and even more i cant have primary key on two column or more because my data is not unique. so the only way to get rid of the id column with a primary key left for me is to stop django making it! and i don't know how... i tried to edit the operation part of the migration file before doing the migrate command but it didn't work. even if i delete the id column in the migration file it still make it /:(.

0

There are 0 best solutions below