def change_ost request 123 44 234 99 345 18 67 for in Good objects fil

1
2
3
4
5
def change_ost(request):
a = [['123',44,5],['234',99,9],['345',18,67]]
for b in a:
Good.objects.filter(id=b[0]).update(count=b[1],price=b[2])
return message("Test ok")