how to use set method for change value in database in django code example
Example 1: django delete object
SomeModel.objects.filter(id=id).delete()
Example 2: django get item by id
obj = Class.objects.get(pk=this_object_id)
SomeModel.objects.filter(id=id).delete()
obj = Class.objects.get(pk=this_object_id)