Following are two fields in a class of models.py
. These are two keys refereed as foreign key from same key of another table.
permenantpincode = models.ForeignKey(Pincodemap, models.DO_NOTHING, db_column='PermenantPincode')
localpincode = models.ForeignKey(Pincodemap, models.DO_NOTHING, db_column='LocalPincode') # Field name made lowercase.
This is showing following error while migration.
ERRORS:
Volunteer.localpincode: (fields.E304) Reverse accessor for 'Volunteer.localpincode' clashes with reverse accessor for 'Volunteer.permenantpincode'.
How could I fix this ?