Error: “dictionary update sequence element #0 has length 1; 2 is required” on Django 1.4

后端 未结 14 1107
梦如初夏
梦如初夏 2020-11-29 21:43

I have an error message on django 1.4:

dictionary update sequence element #0 has length 1; 2 is required

[EDIT]

It happe

14条回答
  •  鱼传尺愫
    2020-11-29 22:24

    You are sending one parameter incorrectly; it should be a dictionary object:

    • Wrong: func(a=r)

    • Correct: func(a={'x':y})

提交回复
热议问题