Skip to content

Commit

Permalink
Implement PreprintProviderWithdrawRequestFilterMixin,
Browse files Browse the repository at this point in the history
which supports filtering on versioned _id
  • Loading branch information
cslzchen committed Jan 10, 2025
1 parent 8bc1b00 commit f9df5d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/providers/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
InvalidFilterOperator,
InvalidFilterValue,
)
from api.base.filters import PreprintFilterMixin, ListFilterMixin
from api.base.filters import ListFilterMixin, PreprintFilterMixin, PreprintProviderWithdrawRequestFilterMixin
from api.base.metrics import PreprintMetricsViewMixin
from api.base.pagination import MaxSizePagination, IncreasedPageSizePagination
from api.base.settings import BULK_SETTINGS
Expand Down Expand Up @@ -571,7 +571,7 @@ def perform_create(self, serializer):
raise ValidationError(f'Provider {provider.name} has no primary collection to submit to.')


class PreprintProviderWithdrawRequestList(JSONAPIBaseView, generics.ListAPIView, ListFilterMixin, ProviderMixin):
class PreprintProviderWithdrawRequestList(JSONAPIBaseView, generics.ListAPIView, PreprintProviderWithdrawRequestFilterMixin, ProviderMixin):
provider_class = PreprintProvider
permission_classes = (
drf_permissions.IsAuthenticated,
Expand Down

0 comments on commit f9df5d9

Please sign in to comment.