Make partial_pipeline JSON serializable for django 1.6