update object django code example
Example 1: delete model object django
SomeModel.objects.filter(id=id).delete()
Example 2: django update model
Model.objects.filter(id = 223).update(field1 = 2)
Example 3: create django object
Author.objects.create(name="Joe")