diff --git a/lnschema_core/migrations/0051_remove_feature_feature_sets_featuresetfeature_and_more.py b/lnschema_core/migrations/0051_remove_feature_feature_sets_featuresetfeature_and_more.py index 0c829b65..9c970e7e 100644 --- a/lnschema_core/migrations/0051_remove_feature_feature_sets_featuresetfeature_and_more.py +++ b/lnschema_core/migrations/0051_remove_feature_feature_sets_featuresetfeature_and_more.py @@ -8,7 +8,7 @@ class Migration(migrations.Migration): dependencies = [ - ("lnschema_core", "0049_rename_type_feature_dtype_and_more"), + ("lnschema_core", "0050_artifactfeatureset_feature_ref_is_semantic_and_more"), ] operations = [ @@ -55,7 +55,7 @@ class Migration(migrations.Migration): field=models.ManyToManyField( related_name="feature_sets", through="lnschema_core.FeatureSetFeature", - to="lnschema_core.featureset", + to="lnschema_core.feature", ), ), ] diff --git a/lnschema_core/models.py b/lnschema_core/models.py index 0e7c5e1e..8906ef31 100644 --- a/lnschema_core/models.py +++ b/lnschema_core/models.py @@ -1442,9 +1442,9 @@ class FeatureSet(Registry): Depending on the registry, `.members` stores, e.g. `Feature` or `Gene` records. """ features = models.ManyToManyField( - "FeatureSet", through="FeatureSetFeature", related_name="feature_sets" + Feature, through="FeatureSetFeature", related_name="feature_sets" ) - """Feature sets linked to this feature.""" + """Features linked to this feature.""" hash = CharField(max_length=20, default=None, db_index=True, null=True) """The hash of the set.""" created_at = models.DateTimeField(auto_now_add=True, db_index=True)