coercing to Unicode: need string or buffer, NoneType found when rendering in django admin

后端 未结 6 653
梦毁少年i
梦毁少年i 2020-12-07 22:32

I have this error since a long time but can\'t figure it out :

Caught TypeError while rendering: coercing to Unicode: need string or buffer, NoneType found

6条回答
  •  忘掉有多难
    2020-12-07 22:51

    In my case it was something else: the object I was saving should first have an id(e.g. save() should be called) before I could set any kind of relationship with it.

提交回复
热议问题