File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -214,14 +214,18 @@ def manageProjects(request):
214
214
project .short_names = ', ' .join (project .short_names )
215
215
216
216
proj_assocs = ProjectAssociation .objects .filter (project_id = project .id ).all ()
217
+ parent_proj_assocs = ProjectAssociation .objects .filter (parent_project_id = project .id ).all ()
218
+
217
219
project .parent_project_names = []
218
- project .child_project_names = []
219
220
for p in proj_assocs :
220
221
parent_project_name = Project .objects .get (id = p .parent_project_id ).name
221
- child_project_name = Project .objects .get (id = p .project_id ).name
222
222
project .parent_project_names .append (parent_project_name )
223
- project .child_project_names .append (child_project_name )
224
223
project .parent_project_names = ', ' .join (project .parent_project_names )
224
+
225
+ project .child_project_names = []
226
+ for pa in parent_proj_assocs :
227
+ child_project_name = Project .objects .get (id = pa .project_id ).name
228
+ project .child_project_names .append (child_project_name )
225
229
project .child_project_names = ', ' .join (project .child_project_names )
226
230
227
231
return render (request , 'ingest/manage_projects.html' , {'allprojects' :allprojects , 'pi' :pi })
You can’t perform that action at this time.
0 commit comments