how to update a model in django code example
Example 1: django update model
Model.objects.filter(id = 223).update(field1 = 2)
Example 2: django delete object
SomeModel.objects.filter(id=id).delete()
Model.objects.filter(id = 223).update(field1 = 2)
SomeModel.objects.filter(id=id).delete()