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
10 lines
314 B
Python
10 lines
314 B
Python
from rest_framework import viewsets
|
|
|
|
from .models import Team
|
|
from .serializers import TeamSerializer
|
|
|
|
|
|
class TeamViewSet(viewsets.ReadOnlyModelViewSet): # create? then we need a way to deal with visibility
|
|
queryset = Team.objects.all().order_by('name') # ordering: TBD
|
|
serializer_class = TeamSerializer
|