79722647

Date: 2025-08-01 14:38:23
Score: 1.5
Natty:
Report link

I believe the problem is that you're running into a Django limitation:

ForeignKey fields auto-create a <field>_id attribute at the database level, so you cannot have both a model field named source_id and a ForeignKey source field, which causes the clash.

As @willeM_VanOnsem suggested, use an @property as a limited workaround.

Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @willeM_VanOnsem
  • Low reputation (1):
Posted by: alexander-shelton