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
324 B

from ...models import Span
from ...serializers import SpanSerializer
from .base import BaseDetailAPI, BaseListAPI
class SpanListAPI(BaseListAPI):
annotation_class = Span
serializer_class = SpanSerializer
class SpanDetailAPI(BaseDetailAPI):
queryset = Span.objects.all()
serializer_class = SpanSerializer