int() argument must be a string or a number, not 'SimpleLazyObject'

前端 未结 5 745
南方客
南方客 2020-12-13 19:33

I got, following Error messages,

TypeError at /save/ int() argument must be a string or a number, not \'SimpleLazyObject\'

Whi

5条回答
  •  北海茫月
    2020-12-13 19:56

    You have to login when running this piece of code on localhost. Otherwise the request.user will be a SimpleLazyObject, then the errors comes out.

提交回复
热议问题