Feb-09-2018, 04:21 AM
When you designate a field as a ForeignKey of another model Django will tie they field to whatever the primary key is of the parent table. When you run your migrate commands Django will create a column with the name of 'id' set it to primary and auto increment. That is what would happen in the scenario you have provided.