Ticket #327 (closed defect: fixed)
contribute_to_class can be called multiple times for fields
|Reported by:||carl@…||Owned by:||andrew|
I have a custom field that adds another field to the model in its contribute_to_class method. If I try to do a data migration on a model with this field, using the fake ORM, I get "multiple assignments to same column" errors from Postgres. This is because apparently the fake ORM calls contribute_to_class on a field twice, instead of once as Django does. This results in the extra field being added twice.
Haven't had the time yet to wrap my head around the fake ORM code and figure out why this happens and if it's avoidable.