You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
364 B

  1. from ...models import TextLabel
  2. from ...serializers import TextLabelSerializer
  3. from .base import BaseDetailAPI, BaseListAPI
  4. class TextLabelListAPI(BaseListAPI):
  5. annotation_class = TextLabel
  6. serializer_class = TextLabelSerializer
  7. class TextLabelDetailAPI(BaseDetailAPI):
  8. queryset = TextLabel.objects.all()
  9. serializer_class = TextLabelSerializer