Skip to content

Commit

Permalink
search: fix default ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
drjova committed Dec 13, 2023
1 parent 0476583 commit 4459b6f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scoap3/articles/api/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ class ArticleDocumentView(BaseDocumentViewSet):

search_fields = ("title", "id", "authors.first_name", "authors.last_name")

ordering = ["-updated_at"]

filter_fields = {
"publication_year": {
"field": "publication_date",
Expand Down

0 comments on commit 4459b6f

Please sign in to comment.