From d3d46a9ad74cbd383f03290fd8584b4554f38b40 Mon Sep 17 00:00:00 2001 From: James Biggs Date: Tue, 18 Feb 2025 14:29:21 +0000 Subject: [PATCH 1/6] Add `type` to listing view --- etna/core/models/basepage.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/etna/core/models/basepage.py b/etna/core/models/basepage.py index 367868042..f96087937 100644 --- a/etna/core/models/basepage.py +++ b/etna/core/models/basepage.py @@ -158,12 +158,17 @@ def mourning_notice(self): return MourningNotice.objects.first() + @cached_property + def type(self): + return self.__class__.__name__ + default_api_fields = [ APIField("id"), APIField("title"), APIField("short_title"), APIField("url"), APIField("full_url"), + APIField("type"), APIField("type_label"), APIField("teaser_text"), APIField( From 314440baae3f8190b2d1ec7334af34b862f82e5b Mon Sep 17 00:00:00 2001 From: James Biggs Date: Tue, 18 Feb 2025 16:06:17 +0000 Subject: [PATCH 2/6] Updated test fixtures --- etna/api/tests/expected_results/article.json | 4 ++++ etna/api/tests/expected_results/article_index.json | 3 +++ etna/api/tests/expected_results/arts.json | 3 +++ etna/api/tests/expected_results/early_modern.json | 3 +++ etna/api/tests/expected_results/focused_article.json | 4 ++++ etna/api/tests/expected_results/highlight_gallery.json | 3 +++ etna/api/tests/expected_results/pages.json | 10 ++++++++++ etna/api/tests/expected_results/people.json | 1 + etna/api/tests/expected_results/postwar.json | 1 + 9 files changed, 32 insertions(+) diff --git a/etna/api/tests/expected_results/article.json b/etna/api/tests/expected_results/article.json index 0d5af07c4..7f1e6613c 100644 --- a/etna/api/tests/expected_results/article.json +++ b/etna/api/tests/expected_results/article.json @@ -320,6 +320,7 @@ "short_title": null, "url": "/article_index/focused_article/", "full_url": "http://localhost/article_index/focused_article/", + "type": "FocusedArticlePage", "type_label": "Focus on", "teaser_text": "Teaser text", "teaser_image": { @@ -350,6 +351,7 @@ "short_title": null, "url": "/arts/", "full_url": "http://localhost/arts/", + "type": "TopicExplorerPage", "type_label": "Explore the collection", "teaser_text": "Teaser text", "teaser_image": { @@ -378,6 +380,7 @@ "short_title": null, "url": "/early_modern/", "full_url": "http://localhost/early_modern/", + "type": "TimePeriodExplorerPage", "type_label": "Explore the collection", "teaser_text": "Teaser text", "teaser_image": { @@ -404,6 +407,7 @@ "short_title": null, "url": "/postwar/", "full_url": "http://localhost/postwar/", + "type": "TimePeriodExplorerPage", "type_label": "Explore the collection", "teaser_text": "Teaser text", "teaser_image": { diff --git a/etna/api/tests/expected_results/article_index.json b/etna/api/tests/expected_results/article_index.json index ec1da52ff..c4117f1b1 100644 --- a/etna/api/tests/expected_results/article_index.json +++ b/etna/api/tests/expected_results/article_index.json @@ -76,6 +76,7 @@ "short_title": null, "url": "/article_index/article/", "full_url": "http://localhost/article_index/article/", + "type": "ArticlePage", "type_label": "The story of", "teaser_text": "Teaser text", "teaser_image": { @@ -110,6 +111,7 @@ "short_title": null, "url": "/article_index/article/", "full_url": "http://localhost/article_index/article/", + "type": "ArticlePage", "type_label": "The story of", "teaser_text": "Teaser text", "teaser_image": { @@ -137,6 +139,7 @@ "short_title": null, "url": "/article_index/focused_article/", "full_url": "http://localhost/article_index/focused_article/", + "type": "FocusedArticlePage", "type_label": "Focus on", "teaser_text": "Teaser text", "teaser_image": { diff --git a/etna/api/tests/expected_results/arts.json b/etna/api/tests/expected_results/arts.json index b12da6f25..f536c2804 100644 --- a/etna/api/tests/expected_results/arts.json +++ b/etna/api/tests/expected_results/arts.json @@ -123,6 +123,7 @@ "short_title": null, "url": "/article_index/focused_article/", "full_url": "http://localhost/article_index/focused_article/", + "type": "FocusedArticlePage", "type_label": "Focus on", "teaser_text": "Teaser text", "teaser_image": { @@ -150,6 +151,7 @@ "short_title": null, "url": "/article_index/article/", "full_url": "http://localhost/article_index/article/", + "type": "ArticlePage", "type_label": "The story of", "teaser_text": "Teaser text", "teaser_image": { @@ -179,6 +181,7 @@ "short_title": null, "url": "/arts/highlight_gallery/", "full_url": "http://localhost/arts/highlight_gallery/", + "type": "HighlightGalleryPage", "type_label": "In pictures", "teaser_text": "Teaser text", "teaser_image": { diff --git a/etna/api/tests/expected_results/early_modern.json b/etna/api/tests/expected_results/early_modern.json index 074ce0a57..3fcbdc546 100644 --- a/etna/api/tests/expected_results/early_modern.json +++ b/etna/api/tests/expected_results/early_modern.json @@ -122,6 +122,7 @@ "short_title": null, "url": "/article_index/focused_article/", "full_url": "http://localhost/article_index/focused_article/", + "type": "FocusedArticlePage", "type_label": "Focus on", "teaser_text": "Teaser text", "teaser_image": { @@ -149,6 +150,7 @@ "short_title": null, "url": "/article_index/article/", "full_url": "http://localhost/article_index/article/", + "type": "ArticlePage", "type_label": "The story of", "teaser_text": "Teaser text", "teaser_image": { @@ -178,6 +180,7 @@ "short_title": null, "url": "/arts/highlight_gallery/", "full_url": "http://localhost/arts/highlight_gallery/", + "type": "HighlightGalleryPage", "type_label": "In pictures", "teaser_text": "Teaser text", "teaser_image": { diff --git a/etna/api/tests/expected_results/focused_article.json b/etna/api/tests/expected_results/focused_article.json index 51b821198..4afce2b71 100644 --- a/etna/api/tests/expected_results/focused_article.json +++ b/etna/api/tests/expected_results/focused_article.json @@ -133,6 +133,7 @@ "short_title": null, "url": "/article_index/article/", "full_url": "http://localhost/article_index/article/", + "type": "ArticlePage", "type_label": "The story of", "teaser_text": "Teaser text", "teaser_image": { @@ -163,6 +164,7 @@ "short_title": null, "url": "/arts/", "full_url": "http://localhost/arts/", + "type": "TopicExplorerPage", "type_label": "Explore the collection", "teaser_text": "Teaser text", "teaser_image": { @@ -191,6 +193,7 @@ "short_title": null, "url": "/early_modern/", "full_url": "http://localhost/early_modern/", + "type": "TimePeriodExplorerPage", "type_label": "Explore the collection", "teaser_text": "Teaser text", "teaser_image": { @@ -219,6 +222,7 @@ "short_title": null, "url": "/people/author/", "full_url": "http://localhost/people/author/", + "type": "PersonPage", "type_label": null, "teaser_text": "Teaser text", "teaser_image": { diff --git a/etna/api/tests/expected_results/highlight_gallery.json b/etna/api/tests/expected_results/highlight_gallery.json index ef261c1e0..5af9454ef 100644 --- a/etna/api/tests/expected_results/highlight_gallery.json +++ b/etna/api/tests/expected_results/highlight_gallery.json @@ -77,6 +77,7 @@ "short_title": null, "url": "/article_index/article/", "full_url": "http://localhost/article_index/article/", + "type": "ArticlePage", "type_label": "The story of", "teaser_text": "Teaser text", "teaser_image": { @@ -161,6 +162,7 @@ "short_title": null, "url": "/arts/", "full_url": "http://localhost/arts/", + "type": "TopicExplorerPage", "type_label": "Explore the collection", "teaser_text": "Teaser text", "teaser_image": { @@ -189,6 +191,7 @@ "short_title": null, "url": "/early_modern/", "full_url": "http://localhost/early_modern/", + "type": "TimePeriodExplorerPage", "type_label": "Explore the collection", "teaser_text": "Teaser text", "teaser_image": { diff --git a/etna/api/tests/expected_results/pages.json b/etna/api/tests/expected_results/pages.json index 3fa322fa5..6fc56716d 100644 --- a/etna/api/tests/expected_results/pages.json +++ b/etna/api/tests/expected_results/pages.json @@ -9,6 +9,7 @@ "short_title": null, "url": "/", "full_url": "http://localhost/", + "type": "HomePage", "type_label": null, "teaser_text": "", "teaser_image": null, @@ -20,6 +21,7 @@ "short_title": null, "url": "/arts/", "full_url": "http://localhost/arts/", + "type": "TopicExplorerPage", "type_label": "Explore the collection", "teaser_text": "Teaser text", "teaser_image": { @@ -46,6 +48,7 @@ "short_title": null, "url": "/arts/highlight_gallery/", "full_url": "http://localhost/arts/highlight_gallery/", + "type": "HighlightGalleryPage", "type_label": "In pictures", "teaser_text": "Teaser text", "teaser_image": { @@ -73,6 +76,7 @@ "short_title": null, "url": "/early_modern/", "full_url": "http://localhost/early_modern/", + "type": "TimePeriodExplorerPage", "type_label": "Explore the collection", "teaser_text": "Teaser text", "teaser_image": { @@ -99,6 +103,7 @@ "short_title": null, "url": "/postwar/", "full_url": "http://localhost/postwar/", + "type": "TimePeriodExplorerPage", "type_label": "Explore the collection", "teaser_text": "Teaser text", "teaser_image": { @@ -125,6 +130,7 @@ "short_title": null, "url": "/people/", "full_url": "http://localhost/people/", + "type": "PeopleIndexPage", "type_label": null, "teaser_text": "Teaser text", "teaser_image": { @@ -151,6 +157,7 @@ "short_title": null, "url": "/people/author/", "full_url": "http://localhost/people/author/", + "type": "PersonPage", "type_label": null, "teaser_text": "Teaser text", "teaser_image": { @@ -219,6 +226,7 @@ "short_title": null, "url": "/article_index/", "full_url": "http://localhost/article_index/", + "type": "ArticleIndexPage", "type_label": null, "teaser_text": "Teaser text", "teaser_image": { @@ -245,6 +253,7 @@ "short_title": null, "url": "/article_index/article/", "full_url": "http://localhost/article_index/article/", + "type": "ArticlePage", "type_label": "The story of", "teaser_text": "Teaser text", "teaser_image": { @@ -272,6 +281,7 @@ "short_title": null, "url": "/article_index/focused_article/", "full_url": "http://localhost/article_index/focused_article/", + "type": "FocusedArticlePage", "type_label": "Focus on", "teaser_text": "Teaser text", "teaser_image": { diff --git a/etna/api/tests/expected_results/people.json b/etna/api/tests/expected_results/people.json index d5861a2fe..9b8959d07 100644 --- a/etna/api/tests/expected_results/people.json +++ b/etna/api/tests/expected_results/people.json @@ -82,6 +82,7 @@ "short_title": null, "url": "/people/author/", "full_url": "http://localhost/people/author/", + "type": "PersonPage", "type_label": null, "teaser_text": "Teaser text", "teaser_image": { diff --git a/etna/api/tests/expected_results/postwar.json b/etna/api/tests/expected_results/postwar.json index b189dba96..8e6a9fcaa 100644 --- a/etna/api/tests/expected_results/postwar.json +++ b/etna/api/tests/expected_results/postwar.json @@ -122,6 +122,7 @@ "short_title": null, "url": "/article_index/article/", "full_url": "http://localhost/article_index/article/", + "type": "ArticlePage", "type_label": "The story of", "teaser_text": "Teaser text", "teaser_image": { From 5b2f840f9e0c56de485d8968f1a5c22e3326785c Mon Sep 17 00:00:00 2001 From: James Biggs Date: Tue, 4 Mar 2025 10:53:39 +0000 Subject: [PATCH 3/6] Updated where `type` comes from --- etna/core/models/basepage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etna/core/models/basepage.py b/etna/core/models/basepage.py index f96087937..7f9a6bfe3 100644 --- a/etna/core/models/basepage.py +++ b/etna/core/models/basepage.py @@ -160,7 +160,7 @@ def mourning_notice(self): @cached_property def type(self): - return self.__class__.__name__ + return self._meta.label default_api_fields = [ APIField("id"), From 62d333f915d388f6897095901f1f4573df5212be Mon Sep 17 00:00:00 2001 From: James Biggs Date: Tue, 4 Mar 2025 10:53:45 +0000 Subject: [PATCH 4/6] Updated test fixtures --- etna/api/tests/expected_results/article.json | 8 ++++---- .../tests/expected_results/article_index.json | 6 +++--- etna/api/tests/expected_results/arts.json | 6 +++--- .../api/tests/expected_results/early_modern.json | 6 +++--- .../tests/expected_results/focused_article.json | 8 ++++---- .../expected_results/highlight_gallery.json | 6 +++--- etna/api/tests/expected_results/pages.json | 16 ++++++++-------- etna/api/tests/expected_results/people.json | 2 +- etna/api/tests/expected_results/postwar.json | 2 +- 9 files changed, 30 insertions(+), 30 deletions(-) diff --git a/etna/api/tests/expected_results/article.json b/etna/api/tests/expected_results/article.json index 7f1e6613c..e77338b05 100644 --- a/etna/api/tests/expected_results/article.json +++ b/etna/api/tests/expected_results/article.json @@ -320,7 +320,7 @@ "short_title": null, "url": "/article_index/focused_article/", "full_url": "http://localhost/article_index/focused_article/", - "type": "FocusedArticlePage", + "type": "articles.FocusedArticlePage", "type_label": "Focus on", "teaser_text": "Teaser text", "teaser_image": { @@ -351,7 +351,7 @@ "short_title": null, "url": "/arts/", "full_url": "http://localhost/arts/", - "type": "TopicExplorerPage", + "type": "collections.TopicExplorerPage", "type_label": "Explore the collection", "teaser_text": "Teaser text", "teaser_image": { @@ -380,7 +380,7 @@ "short_title": null, "url": "/early_modern/", "full_url": "http://localhost/early_modern/", - "type": "TimePeriodExplorerPage", + "type": "collections.TimePeriodExplorerPage", "type_label": "Explore the collection", "teaser_text": "Teaser text", "teaser_image": { @@ -407,7 +407,7 @@ "short_title": null, "url": "/postwar/", "full_url": "http://localhost/postwar/", - "type": "TimePeriodExplorerPage", + "type": "collections.TimePeriodExplorerPage", "type_label": "Explore the collection", "teaser_text": "Teaser text", "teaser_image": { diff --git a/etna/api/tests/expected_results/article_index.json b/etna/api/tests/expected_results/article_index.json index c4117f1b1..e50cfc3e3 100644 --- a/etna/api/tests/expected_results/article_index.json +++ b/etna/api/tests/expected_results/article_index.json @@ -76,7 +76,7 @@ "short_title": null, "url": "/article_index/article/", "full_url": "http://localhost/article_index/article/", - "type": "ArticlePage", + "type": "articles.ArticlePage", "type_label": "The story of", "teaser_text": "Teaser text", "teaser_image": { @@ -111,7 +111,7 @@ "short_title": null, "url": "/article_index/article/", "full_url": "http://localhost/article_index/article/", - "type": "ArticlePage", + "type": "articles.ArticlePage", "type_label": "The story of", "teaser_text": "Teaser text", "teaser_image": { @@ -139,7 +139,7 @@ "short_title": null, "url": "/article_index/focused_article/", "full_url": "http://localhost/article_index/focused_article/", - "type": "FocusedArticlePage", + "type": "articles.FocusedArticlePage", "type_label": "Focus on", "teaser_text": "Teaser text", "teaser_image": { diff --git a/etna/api/tests/expected_results/arts.json b/etna/api/tests/expected_results/arts.json index f536c2804..b8f98603e 100644 --- a/etna/api/tests/expected_results/arts.json +++ b/etna/api/tests/expected_results/arts.json @@ -123,7 +123,7 @@ "short_title": null, "url": "/article_index/focused_article/", "full_url": "http://localhost/article_index/focused_article/", - "type": "FocusedArticlePage", + "type": "articles.FocusedArticlePage", "type_label": "Focus on", "teaser_text": "Teaser text", "teaser_image": { @@ -151,7 +151,7 @@ "short_title": null, "url": "/article_index/article/", "full_url": "http://localhost/article_index/article/", - "type": "ArticlePage", + "type": "articles.ArticlePage", "type_label": "The story of", "teaser_text": "Teaser text", "teaser_image": { @@ -181,7 +181,7 @@ "short_title": null, "url": "/arts/highlight_gallery/", "full_url": "http://localhost/arts/highlight_gallery/", - "type": "HighlightGalleryPage", + "type": "collections.HighlightGalleryPage", "type_label": "In pictures", "teaser_text": "Teaser text", "teaser_image": { diff --git a/etna/api/tests/expected_results/early_modern.json b/etna/api/tests/expected_results/early_modern.json index 3fcbdc546..4c23c6a6d 100644 --- a/etna/api/tests/expected_results/early_modern.json +++ b/etna/api/tests/expected_results/early_modern.json @@ -122,7 +122,7 @@ "short_title": null, "url": "/article_index/focused_article/", "full_url": "http://localhost/article_index/focused_article/", - "type": "FocusedArticlePage", + "type": "articles.FocusedArticlePage", "type_label": "Focus on", "teaser_text": "Teaser text", "teaser_image": { @@ -150,7 +150,7 @@ "short_title": null, "url": "/article_index/article/", "full_url": "http://localhost/article_index/article/", - "type": "ArticlePage", + "type": "articles.ArticlePage", "type_label": "The story of", "teaser_text": "Teaser text", "teaser_image": { @@ -180,7 +180,7 @@ "short_title": null, "url": "/arts/highlight_gallery/", "full_url": "http://localhost/arts/highlight_gallery/", - "type": "HighlightGalleryPage", + "type": "collections.HighlightGalleryPage", "type_label": "In pictures", "teaser_text": "Teaser text", "teaser_image": { diff --git a/etna/api/tests/expected_results/focused_article.json b/etna/api/tests/expected_results/focused_article.json index 4afce2b71..4eabc212c 100644 --- a/etna/api/tests/expected_results/focused_article.json +++ b/etna/api/tests/expected_results/focused_article.json @@ -133,7 +133,7 @@ "short_title": null, "url": "/article_index/article/", "full_url": "http://localhost/article_index/article/", - "type": "ArticlePage", + "type": "articles.ArticlePage", "type_label": "The story of", "teaser_text": "Teaser text", "teaser_image": { @@ -164,7 +164,7 @@ "short_title": null, "url": "/arts/", "full_url": "http://localhost/arts/", - "type": "TopicExplorerPage", + "type": "collections.TopicExplorerPage", "type_label": "Explore the collection", "teaser_text": "Teaser text", "teaser_image": { @@ -193,7 +193,7 @@ "short_title": null, "url": "/early_modern/", "full_url": "http://localhost/early_modern/", - "type": "TimePeriodExplorerPage", + "type": "collections.TimePeriodExplorerPage", "type_label": "Explore the collection", "teaser_text": "Teaser text", "teaser_image": { @@ -222,7 +222,7 @@ "short_title": null, "url": "/people/author/", "full_url": "http://localhost/people/author/", - "type": "PersonPage", + "type": "people.PersonPage", "type_label": null, "teaser_text": "Teaser text", "teaser_image": { diff --git a/etna/api/tests/expected_results/highlight_gallery.json b/etna/api/tests/expected_results/highlight_gallery.json index 5af9454ef..35262c0ac 100644 --- a/etna/api/tests/expected_results/highlight_gallery.json +++ b/etna/api/tests/expected_results/highlight_gallery.json @@ -77,7 +77,7 @@ "short_title": null, "url": "/article_index/article/", "full_url": "http://localhost/article_index/article/", - "type": "ArticlePage", + "type": "articles.ArticlePage", "type_label": "The story of", "teaser_text": "Teaser text", "teaser_image": { @@ -162,7 +162,7 @@ "short_title": null, "url": "/arts/", "full_url": "http://localhost/arts/", - "type": "TopicExplorerPage", + "type": "collections.TopicExplorerPage", "type_label": "Explore the collection", "teaser_text": "Teaser text", "teaser_image": { @@ -191,7 +191,7 @@ "short_title": null, "url": "/early_modern/", "full_url": "http://localhost/early_modern/", - "type": "TimePeriodExplorerPage", + "type": "collections.TimePeriodExplorerPage", "type_label": "Explore the collection", "teaser_text": "Teaser text", "teaser_image": { diff --git a/etna/api/tests/expected_results/pages.json b/etna/api/tests/expected_results/pages.json index 6fc56716d..9a522afc7 100644 --- a/etna/api/tests/expected_results/pages.json +++ b/etna/api/tests/expected_results/pages.json @@ -9,7 +9,7 @@ "short_title": null, "url": "/", "full_url": "http://localhost/", - "type": "HomePage", + "type": "home.HomePage", "type_label": null, "teaser_text": "", "teaser_image": null, @@ -21,7 +21,7 @@ "short_title": null, "url": "/arts/", "full_url": "http://localhost/arts/", - "type": "TopicExplorerPage", + "type": "collections.TopicExplorerPage", "type_label": "Explore the collection", "teaser_text": "Teaser text", "teaser_image": { @@ -48,7 +48,7 @@ "short_title": null, "url": "/arts/highlight_gallery/", "full_url": "http://localhost/arts/highlight_gallery/", - "type": "HighlightGalleryPage", + "type": "collections.HighlightGalleryPage", "type_label": "In pictures", "teaser_text": "Teaser text", "teaser_image": { @@ -76,7 +76,7 @@ "short_title": null, "url": "/early_modern/", "full_url": "http://localhost/early_modern/", - "type": "TimePeriodExplorerPage", + "type": "collections.TimePeriodExplorerPage", "type_label": "Explore the collection", "teaser_text": "Teaser text", "teaser_image": { @@ -103,7 +103,7 @@ "short_title": null, "url": "/postwar/", "full_url": "http://localhost/postwar/", - "type": "TimePeriodExplorerPage", + "type": "collections.TimePeriodExplorerPage", "type_label": "Explore the collection", "teaser_text": "Teaser text", "teaser_image": { @@ -157,7 +157,7 @@ "short_title": null, "url": "/people/author/", "full_url": "http://localhost/people/author/", - "type": "PersonPage", + "type": "people.PersonPage", "type_label": null, "teaser_text": "Teaser text", "teaser_image": { @@ -253,7 +253,7 @@ "short_title": null, "url": "/article_index/article/", "full_url": "http://localhost/article_index/article/", - "type": "ArticlePage", + "type": "articles.ArticlePage", "type_label": "The story of", "teaser_text": "Teaser text", "teaser_image": { @@ -281,7 +281,7 @@ "short_title": null, "url": "/article_index/focused_article/", "full_url": "http://localhost/article_index/focused_article/", - "type": "FocusedArticlePage", + "type": "articles.FocusedArticlePage", "type_label": "Focus on", "teaser_text": "Teaser text", "teaser_image": { diff --git a/etna/api/tests/expected_results/people.json b/etna/api/tests/expected_results/people.json index 9b8959d07..bc1774f42 100644 --- a/etna/api/tests/expected_results/people.json +++ b/etna/api/tests/expected_results/people.json @@ -82,7 +82,7 @@ "short_title": null, "url": "/people/author/", "full_url": "http://localhost/people/author/", - "type": "PersonPage", + "type": "people.PersonPage", "type_label": null, "teaser_text": "Teaser text", "teaser_image": { diff --git a/etna/api/tests/expected_results/postwar.json b/etna/api/tests/expected_results/postwar.json index 8e6a9fcaa..706dc179f 100644 --- a/etna/api/tests/expected_results/postwar.json +++ b/etna/api/tests/expected_results/postwar.json @@ -122,7 +122,7 @@ "short_title": null, "url": "/article_index/article/", "full_url": "http://localhost/article_index/article/", - "type": "ArticlePage", + "type": "articles.ArticlePage", "type_label": "The story of", "teaser_text": "Teaser text", "teaser_image": { From 28016a9c9f6c7acc60752e7a9dc41c7ea65b909b Mon Sep 17 00:00:00 2001 From: James Biggs Date: Tue, 4 Mar 2025 10:59:06 +0000 Subject: [PATCH 5/6] Test fixtures --- etna/api/tests/expected_results/pages.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etna/api/tests/expected_results/pages.json b/etna/api/tests/expected_results/pages.json index 9a522afc7..775e249a9 100644 --- a/etna/api/tests/expected_results/pages.json +++ b/etna/api/tests/expected_results/pages.json @@ -226,7 +226,7 @@ "short_title": null, "url": "/article_index/", "full_url": "http://localhost/article_index/", - "type": "ArticleIndexPage", + "type": "articles.ArticleIndexPage", "type_label": null, "teaser_text": "Teaser text", "teaser_image": { From fb28ae90f91309a151f41c680a0e24b65ad756bd Mon Sep 17 00:00:00 2001 From: James Biggs Date: Tue, 4 Mar 2025 10:59:46 +0000 Subject: [PATCH 6/6] Test fixtures... --- etna/api/tests/expected_results/pages.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etna/api/tests/expected_results/pages.json b/etna/api/tests/expected_results/pages.json index 775e249a9..800052c69 100644 --- a/etna/api/tests/expected_results/pages.json +++ b/etna/api/tests/expected_results/pages.json @@ -130,7 +130,7 @@ "short_title": null, "url": "/people/", "full_url": "http://localhost/people/", - "type": "PeopleIndexPage", + "type": "people.PeopleIndexPage", "type_label": null, "teaser_text": "Teaser text", "teaser_image": {