From 6fad98ca53b9226ef00f2e5190c571f8f8045062 Mon Sep 17 00:00:00 2001 From: "Alan B. Christie" <29806285+alanbchristie@users.noreply.github.com> Date: Tue, 13 Aug 2024 13:22:31 +0100 Subject: [PATCH] fix: Fix typo accessing Target projects (#632) --- viewer/cset_upload.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/viewer/cset_upload.py b/viewer/cset_upload.py index 48d375f3..235f062c 100644 --- a/viewer/cset_upload.py +++ b/viewer/cset_upload.py @@ -301,7 +301,7 @@ def create_mol(self, inchi, target, name=None) -> Compound: target.title, num_target_proposals, ) - for project in target.project_set.all(): + for project in target.project_id.all(): cpd.project_id.add(project) except MultipleObjectsReturned as exc: # NB! when processing new uploads, Compound is always