Skip to content
This repository has been archived by the owner on Jan 2, 2025. It is now read-only.

Commit

Permalink
💚 Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
falexwolf committed May 18, 2024
1 parent 12fac74 commit 1bf2c73
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down Expand Up @@ -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",
),
),
]
4 changes: 2 additions & 2 deletions lnschema_core/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1bf2c73

Please sign in to comment.