update django model object 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()
Example 3: .save() in django
>>> one_entry = Entry.objects.get(pk=1)