コード例 #1
0
 def test_delete_subfunc(self):
     say_sub = ConcatWS(Value('s'), Value('ub'), separator='')
     DynamicModel.objects.update(attrs=ColumnDelete('attrs', say_sub))
     m = DynamicModel.objects.get()
     assert m.attrs == {'flote': 1.0}
コード例 #2
0
 def test_delete_subfunc(self):
     say_sub = ConcatWS(Value("s"), Value("ub"), separator="")
     DynamicModel.objects.update(attrs=ColumnDelete("attrs", say_sub))
     m = DynamicModel.objects.get()
     assert m.attrs == {"flote": 1.0}
コード例 #3
0
 def test_delete(self):
     DynamicModel.objects.update(attrs=ColumnDelete('attrs', 'sub'))
     m = DynamicModel.objects.get()
     assert m.attrs == {'flote': 1.0}
コード例 #4
0
 def test_delete(self):
     DynamicModel.objects.update(attrs=ColumnDelete("attrs", "sub"))
     m = DynamicModel.objects.get()
     assert m.attrs == {"flote": 1.0}