From 6bd31887e25b287fc5c23dd2bdd3476db209aa78 Mon Sep 17 00:00:00 2001 From: Derk Weijers Date: Fri, 15 Mar 2024 08:59:22 +0100 Subject: [PATCH] fix: remove space from updated_at field --- api/views/articles.py | 2 +- api/views/blogs.py | 2 +- api/views/reports.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/api/views/articles.py b/api/views/articles.py index bb90687e..400a4b1c 100644 --- a/api/views/articles.py +++ b/api/views/articles.py @@ -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"] diff --git a/api/views/blogs.py b/api/views/blogs.py index 30d6838b..e5700643 100644 --- a/api/views/blogs.py +++ b/api/views/blogs.py @@ -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"] diff --git a/api/views/reports.py b/api/views/reports.py index f62aa469..b964ddb1 100644 --- a/api/views/reports.py +++ b/api/views/reports.py @@ -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"]