Skip to content

Commit

Permalink
adds serializer
Browse files Browse the repository at this point in the history
  • Loading branch information
george-silva committed May 13, 2024
1 parent 2ad5e29 commit 20a8fcc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/planscape/projects/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@

from projects.filters import ProjectFilterSet
from projects.models import Project, ProjectVisibility
from projects.serializers import ProjectSerializer


class ProjectViewSet(ListModelMixin, RetrieveModelMixin, GenericViewSet):
queryset = Project.objects.filter(visibility=ProjectVisibility.PUBLIC)
ordering_fields = ["name", "display_name", "created_at"]
filterset_class = ProjectFilterSet
serializer_class = ProjectSerializer

def get_queryset(self):
# TODO: we need to customize
Expand Down

0 comments on commit 20a8fcc

Please sign in to comment.