diff --git a/lamindb/_record.py b/lamindb/_record.py index 163c3fda9..277212dfc 100644 --- a/lamindb/_record.py +++ b/lamindb/_record.py @@ -28,12 +28,12 @@ Feature, FeatureSet, IsVersioned, - LinkORM, Param, Record, Run, Transform, ULabel, + ValidateFields, ) from lnschema_core.validation import FieldValidationError @@ -177,10 +177,7 @@ def __init__(record: Record, *args, **kwargs): init_self_from_db(record, existing_record) return None super(Record, record).__init__(**kwargs) - if record.__class__.__get_schema_name__() not in { - "core", - "bionty", - } and not isinstance(record, LinkORM): + if isinstance(record, ValidateFields): # this will trigger validation against django validators try: if hasattr(record, "clean_fields"): diff --git a/lamindb/core/__init__.py b/lamindb/core/__init__.py index 22b29d584..280a29a13 100644 --- a/lamindb/core/__init__.py +++ b/lamindb/core/__init__.py @@ -21,6 +21,7 @@ ParamValue FeatureValue InspectResult + ValidateFields fields Curators: @@ -76,6 +77,7 @@ Registry, TracksRun, TracksUpdates, + ValidateFields, ) from lamindb._curate import ( diff --git a/sub/cellregistry b/sub/cellregistry index a62cfb2d4..eb8e37742 160000 --- a/sub/cellregistry +++ b/sub/cellregistry @@ -1 +1 @@ -Subproject commit a62cfb2d4cb8c651ae3c37179d1a6df512cf65cf +Subproject commit eb8e377427598843ad6d58bc7a451dead9fe7ca7 diff --git a/sub/clinicore b/sub/clinicore index 0e22a394c..626d35c4b 160000 --- a/sub/clinicore +++ b/sub/clinicore @@ -1 +1 @@ -Subproject commit 0e22a394c0db2495d6d0e008e672494f93dda858 +Subproject commit 626d35c4b70e28fb35f0bfb10d46322e8c75259a diff --git a/sub/findrefs b/sub/findrefs index c6db3a6ad..1bf2dcdd4 160000 --- a/sub/findrefs +++ b/sub/findrefs @@ -1 +1 @@ -Subproject commit c6db3a6adb369422af32d0a0dac84376524b96ac +Subproject commit 1bf2dcdd4149e1690e03e2e2c75e3fb50b65347b diff --git a/sub/lnschema-core b/sub/lnschema-core index cb3d9c430..cde81450b 160000 --- a/sub/lnschema-core +++ b/sub/lnschema-core @@ -1 +1 @@ -Subproject commit cb3d9c43049431f426296554e7ca53d68f0c599e +Subproject commit cde81450b29f2bd1f082de35d34587a1ccd5d6f3 diff --git a/sub/ourprojects b/sub/ourprojects index b39e71ca8..7d8f49329 160000 --- a/sub/ourprojects +++ b/sub/ourprojects @@ -1 +1 @@ -Subproject commit b39e71ca82fd5f14ebd539f501a6ec7698aabdb6 +Subproject commit 7d8f49329cd6f3229c31650b88c2e96c28bbf71a diff --git a/sub/wetlab b/sub/wetlab index 1ac3e9a6a..c731d52d5 160000 --- a/sub/wetlab +++ b/sub/wetlab @@ -1 +1 @@ -Subproject commit 1ac3e9a6a6e4679b8a786d61285a26c608d75200 +Subproject commit c731d52d5b1903940373eeaa408a86934d398241