objects.update_or_create() creates a new record in database rathe than update exisiting record

后端 未结 0 1255
刺人心
刺人心 2020-11-21 19:55

I have created a model in Django and for which I get the data from an API. I am trying to use the update_or_create method for getting the data from the API and

相关标签:
回答
  • 消灭零回复
提交回复
热议问题