Skip to content

Commit

Permalink
Attach text annotations to ImageROI
Browse files Browse the repository at this point in the history
Something in implicit setup allowed SyntaxTreeNode to be registered instead
  • Loading branch information
jacobwegner committed Nov 7, 2023
1 parent 1c55e53 commit 17bb7d5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions atlas/scaife_viewer/atlas/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -897,6 +897,7 @@ class Meta:

class ImageROINode(DjangoObjectType):
data = generic.GenericScalar()
text_annotations = LimitedConnectionField(lambda: TextAnnotationNode)

class Meta:
model = ImageROI
Expand Down

1 comment on commit 17bb7d5

@jacobwegner
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sample showing the bad registration:

image

and the corrected one:

image

Please sign in to comment.