How can I change db_column of Foreign Key in Django?
class A(models.Model):
it_id = models.CharField('IT ID', max_length=10)
class B(models.Model):
it_id = models.ForeignKey('A', related_name='item', on_delete=models.PROTECT, db_column='it_id')
when I call objects,
>>> B.objects.all().values()
<QuerySet [{'it_id_id'}:'xxx']>
It is 'it_id_id'....
How can I change 'it_id' from 'it_id_id'?