If I remove the line object = MyModel.objects.get(pk=pk) it works as I excepted.
object = MyModel.objects.get(pk=pk)
But After trying to get the object in my task I got this error dja
dja