| 1 |
from rest_framework import viewsets |
| 2 |
|
| 3 |
from .models import Project |
| 4 |
from .example_serializers import ProjectPolymorphicSerializer |
| 5 |
|
| 6 |
|
| 7 |
class ProjectViewSet(viewsets.ModelViewSet): |
| 8 |
queryset = Project.objects.all() |
| 9 |
serializer_class = ProjectPolymorphicSerializer |