Skip to content

Commit

Permalink
refactor(models): remove unused relation
Browse files Browse the repository at this point in the history
  • Loading branch information
koeaw committed May 16, 2024
1 parent 5cf92b7 commit a5ccbc1
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions apis_ontology/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1048,6 +1048,9 @@ def update_properties():
prop.name_reverse = "is referenced in"
prop.save()

# delete work_is_part_of_expression
Property.objects.filter(name_forward="work is part of expression").delete()


def construct_properties():
"""
Expand Down Expand Up @@ -1127,14 +1130,6 @@ def construct_properties():
objects=[Expression],
)

# work_is_part_of_expression
create_properties(
name_forward="work is part of expression",
name_reverse="expression has part work",
subjects=[Work],
objects=[Expression],
)

# published_in
create_properties(
name_forward="is published in",
Expand Down

0 comments on commit a5ccbc1

Please sign in to comment.