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,