Manager for AnnotationDraft with FSM state support
| 895 | |
| 896 | |
| 897 | class 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 | |
| 909 | class AnnotationDraft(FsmHistoryStateModel): |