Skip to content
Snippets Groups Projects
Commit 773d976b authored by Tore.Brede's avatar Tore.Brede
Browse files

GREG-25: Removing some changes that should have been included in the last commit

parent 63b7c191
No related branches found
No related tags found
1 merge request!28GREG-25: Adding namespace versioning
Pipeline #91133 failed
This commit is part of merge request !28. Comments created here will be created in the context of that merge request.
from django.core.exceptions import ValidationError
from django_filters import rest_framework as filters
from drf_spectacular.utils import extend_schema, OpenApiParameter
from rest_framework import viewsets, status, mixins
from rest_framework import viewsets, status
from rest_framework.response import Response
from rest_framework.viewsets import GenericViewSet
from greg.api.filters import PersonFilter, PersonRoleFilter, PersonIdentityFilter
from greg.api.pagination import PrimaryKeyCursorPagination
from greg.api.serializers.person import (
PersonSerializer,
PersonRoleSerializer,
PersonIdentitySerializer, PersonSummarySerializer,
PersonIdentitySerializer,
)
from greg.models import Person, PersonRole, PersonIdentity
......@@ -115,12 +114,3 @@ class PersonIdentityViewSet(viewsets.ModelViewSet):
return Response(
serializer.data, status=status.HTTP_201_CREATED, headers=headers
)
class PersonSummaryViewSet(mixins.ListModelMixin, GenericViewSet):
queryset = Person.objects.all().order_by("id")
serializer_class = PersonSummarySerializer
pagination_class = PrimaryKeyCursorPagination
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment