def test_update_result(self):
    obj = MyModel.objects.create(val=1)
MyModel.objects.filter(pk=obj.pk).update(val=F('val') + 1)
obj.refresh_from_db()
self.assertEqual(obj.val, 2)
Reload django object from database