Skip to content

Commit

Permalink
fix: remove space from updated_at field
Browse files Browse the repository at this point in the history
  • Loading branch information
derkweijers committed Mar 15, 2024
1 parent 9af1316 commit 6bd3188
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion api/views/articles.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ class ArticleViewSet(viewsets.ReadOnlyModelViewSet): # type: ignore
filterset_class = DocsFilter
search_fields = ["title", "summary", "news_site__name"]
ordering = ["-published_at"]
ordering_fields = ["published_at", " updated_at"]
ordering_fields = ["published_at", "updated_at"]
2 changes: 1 addition & 1 deletion api/views/blogs.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ class BlogViewSet(viewsets.ReadOnlyModelViewSet): # type: ignore
filterset_class = DocsFilter
search_fields = ["title", "summary", "news_site__name"]
ordering = ["-published_at"]
ordering_fields = ["published_at", " updated_at"]
ordering_fields = ["published_at", "updated_at"]
2 changes: 1 addition & 1 deletion api/views/reports.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ class ReportViewSet(viewsets.ReadOnlyModelViewSet): # type: ignore
]
search_fields = ["title", "summary", "news_site__name"]
ordering = ["-published_at"]
ordering_fields = ["published_at", " updated_at"]
ordering_fields = ["published_at", "updated_at"]

0 comments on commit 6bd3188

Please sign in to comment.