What does it mean for an object to be unscriptable?

后端 未结 2 2007
北恋
北恋 2021-01-04 03:43

I don\'t know what\'s going on here... I just want to check the value of a model field and then update it accordingly... any help or insight is appreciated!

model:

2条回答
  •  孤城傲影
    2021-01-04 03:52

    The error is "unSUBscriptable". Your user_profile object isn't a dictionary. Use user_profile.beta, not user_profile['beta'].

提交回复
热议问题