MCPcopy Create free account
hub / github.com/HumanSignal/label-studio / AnnotationDraftManager

Class AnnotationDraftManager

label_studio/tasks/models.py:897–906  ·  view source on GitHub ↗

Manager for AnnotationDraft with FSM state support

Source from the content-addressed store, hash-verified

895
896
897class AnnotationDraftManager(models.Manager):
898 """Manager for AnnotationDraft with FSM state support"""
899
900 def get_queryset(self):
901 """Return QuerySet with FSM state annotation support"""
902 return AnnotationDraftQuerySetWithFSM(self.model, using=self._db)
903
904 def with_state(self):
905 """Return queryset with FSM state annotated."""
906 return self.get_queryset().with_state()
907
908
909class AnnotationDraft(FsmHistoryStateModel):

Callers 1

AnnotationDraftClass · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected