Skip to content

Commit

Permalink
ordering pid / #19
Browse files Browse the repository at this point in the history
  • Loading branch information
eliselavy committed Feb 8, 2024
1 parent 3ad7588 commit 0dd22ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jdhapi/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ class IssueList(generics.ListCreateAPIView):
serializer_class = IssueSerializer
filter_backends = [DjangoFilterBackend, filters.OrderingFilter]
filterset_fields = ["id", "pid", "name", "description", "creation_date", "publication_date", "cover_date", "status", "volume", "issue","is_open_ended"]
ordering_fields = ["creation_date", "publication_date"]
ordering_fields = ["creation_date", "publication_date", "pid"]


class IssueDetail(generics.RetrieveUpdateDestroyAPIView):
Expand Down

0 comments on commit 0dd22ae

Please sign in to comment.