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}
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}
def test_delete(self): DynamicModel.objects.update(attrs=ColumnDelete('attrs', 'sub')) m = DynamicModel.objects.get() assert m.attrs == {'flote': 1.0}
def test_delete(self): DynamicModel.objects.update(attrs=ColumnDelete("attrs", "sub")) m = DynamicModel.objects.get() assert m.attrs == {"flote": 1.0}