model.objects.update django code example
Example 1: django delete object
SomeModel.objects.filter(id=id).delete()
Example 2: .save() in django
>>> one_entry = Entry.objects.get(pk=1)
SomeModel.objects.filter(id=id).delete()
>>> one_entry = Entry.objects.get(pk=1)