django get object by id code example
Example 1: delete model object django
SomeModel.objects.filter(id=id).delete()
Example 2: objects.filter django
>>> Entry.objects.filter(blog_id=4)
Example 3: django get item by id
obj = Class.objects.get(pk=this_object_id)
Example 4: .save() in django
>>> one_entry = Entry.objects.get(pk=1)