mirror of
https://github.com/bugsink/bugsink.git
synced 2025-12-20 12:29:57 -06:00
this gives me something to look at and work with, despite being wildly incomplete See #146
12 lines
318 B
Python
12 lines
318 B
Python
from rest_framework import viewsets
|
|
|
|
from .models import Event
|
|
from .serializers import EventSerializer
|
|
|
|
|
|
class EventViewSet(viewsets.ReadOnlyModelViewSet):
|
|
queryset = Event.objects.all().order_by('digest_order')
|
|
serializer_class = EventSerializer
|
|
|
|
# TODO: the idea of required filter-fields when listing.
|