diff --git a/machado/loaders/assay.py b/machado/loaders/assay.py index d70be299..9195f50f 100644 --- a/machado/loaders/assay.py +++ b/machado/loaders/assay.py @@ -127,7 +127,7 @@ def store_assayprop( ) -> None: """Store analysisprop.""" try: - Assayprop.objects.create( + Assayprop.objects.get_or_create( assay=assay, type_id=type_id, value=value, rank=rank ) except IntegrityError as e: