django的数据库模型中的域多次引用同一个外键(表)

2016-12-12  本文已影响0人  BlueCat2016
Paste_Image.png

ERRORS:
equipment.EquipApply.applyEmployer: (fields.E304) Reverse accessor for 'EquipApply.applyEmployer' clashes with reverse accessor for 'EquipApply.giveEmployer'.
HINT: Add or change a related_name argument to the definition for 'EquipApply.applyEmployer' or 'EquipApply.giveEmployer'.
equipment.EquipApply.giveEmployer: (fields.E304) Reverse accessor for 'EquipApply.giveEmployer' clashes with reverse accessor for 'EquipApply.applyEmployer'.
HINT: Add or change a related_name argument to the definition for 'EquipApply.giveEmployer' or 'EquipApply.applyEmployer'.
参考文章:
http://blog.csdn.net/davidsu33/article/details/51859217

上一篇 下一篇

猜你喜欢

热点阅读