how to get an instace object of a query object django code example Example: django delete object SomeModel.objects.filter(id=id).delete()