diff --git a/backend/labels/migrations/0011_remove_relation_direction.py b/backend/labels/migrations/0011_remove_relation_direction.py new file mode 100644 index 00000000..efb340ba --- /dev/null +++ b/backend/labels/migrations/0011_remove_relation_direction.py @@ -0,0 +1,17 @@ +# Generated by Django 4.0.2 on 2022-03-02 01:30 + +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ("labels", "0010_rename_relationnew_relation"), + ] + + operations = [ + migrations.RemoveField( + model_name="relation", + name="direction", + ), + ] diff --git a/backend/labels/models.py b/backend/labels/models.py index be2d3cc9..7fff6155 100644 --- a/backend/labels/models.py +++ b/backend/labels/models.py @@ -102,11 +102,6 @@ class Relation(Label): to_id = models.ForeignKey(Span, on_delete=models.CASCADE, related_name="to_relations") type = models.ForeignKey(RelationType, on_delete=models.CASCADE) example = models.ForeignKey(to=Example, on_delete=models.CASCADE, related_name="relations") - direction = models.CharField( - max_length=10, - choices=(("left", "left"), ("right", "right"), ("undirected", "undirected")), - default="undirected", - ) def __str__(self): return self.__dict__.__str__()