Переглянути джерело

[jobsub] Add description to 'get_design' call

Fixes bug where editing a design removes the description.
Abraham Elmahrek 11 роки тому
батько
коміт
ba5907c
1 змінених файлів з 1 додано та 0 видалено
  1. 1 0
      apps/jobsub/src/jobsub/views.py

+ 1 - 0
apps/jobsub/src/jobsub/views.py

@@ -177,6 +177,7 @@ def get_design(request, design_id):
   node_dict['is_shared'] = workflow.is_shared
   node_dict['editable'] = workflow.owner.id == request.user.id
   node_dict['parameters'] = workflow.parameters
+  node_dict['description'] = workflow.description
   return render_json(node_dict, js_safe=True);