Skip to content

Commit

Permalink
Merge pull request #3483 from TheSpaceDevs/bug/broken_updated_at_field
Browse files Browse the repository at this point in the history
fix: remove space from updated_at field
  • Loading branch information
derkweijers authored Mar 15, 2024
2 parents 9af1316 + 6bd3188 commit 90d265c
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 90d265c

Please sign in to comment.