thechan = Score.objects.filter(content=44)[0:1]
thechan[0].custom_score = 2
thechan[0].save()
Run Code Online (Sandbox Code Playgroud)
我打印报表,它显示一切正常.但是,它并没有节省!
我进入我的数据库,我运行一个简单的SELECT语句..它没有改变!
select custom_score FROM music_score where content_id = 44;
Run Code Online (Sandbox Code Playgroud)