ValueError: Related model u'app.model' cannot be resolved

后端 未结 6 808
甜味超标
甜味超标 2020-12-29 02:06

I have two applications (ook and eek say) and I want to use a foreign key to a model in ook from a model in eek. Both are

6条回答
  •  一个人的身影
    2020-12-29 02:30

    I encountered this error when trying to use a child model of a base model as a foreign key. It makes sense that it didn't work because there's not an id field on the child model. My fix was to use the parent on the key. Unfortunately this was not immediately intuitive and set me back a couple hours.

提交回复
热议问题