From ca10b3a99a01e2aa95dcd94763c050a76dee3e90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niccol=C3=B2=20Cant=C3=B9?= Date: Wed, 15 Jan 2025 09:30:12 +0100 Subject: [PATCH] fix species set --- src/genlab_bestilling/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/genlab_bestilling/models.py b/src/genlab_bestilling/models.py index 4314ef8..47db029 100644 --- a/src/genlab_bestilling/models.py +++ b/src/genlab_bestilling/models.py @@ -414,7 +414,7 @@ def populate_from_order(self): for marker in self.markers.all(): for sample in self.from_order.samples.filter( - species__in=marker.species_set.all() + species__in=marker.species.all() ): SampleMarkerAnalysis.objects.update_or_create( sample=sample,