Removed task_pk url kwarg, using isinstance to determine object.