mirror of
https://github.com/jlengrand/bugsink.git
synced 2026-03-10 08:01:17 +00:00
this gives me something to look at and work with, despite being wildly incomplete See #146
10 lines
248 B
Python
10 lines
248 B
Python
from rest_framework import viewsets
|
|
|
|
from .models import Project
|
|
from .serializers import ProjectSerializer
|
|
|
|
|
|
class ProjectViewSet(viewsets.ModelViewSet):
|
|
queryset = Project.objects.all().order_by('id')
|
|
serializer_class = ProjectSerializer
|