[Answer]-Django model foreign key created index

1👍

You can use the db_column parameter to call the column whatever you like.

https://docs.djangoproject.com/en/dev/ref/models/fields/#db-column

countyName = models.ForeignKey(counties, primary_key=True, db_column=’whatever’)

Leave a comment