diff --git a/lacommunaute/pages/tests/test_homepage.py b/lacommunaute/pages/tests/test_homepage.py index 0e121aaa4..2b3851644 100644 --- a/lacommunaute/pages/tests/test_homepage.py +++ b/lacommunaute/pages/tests/test_homepage.py @@ -12,7 +12,6 @@ def test_context_data(client, db): topic = TopicFactory(with_post=True, forum=ForumFactory()) - news = TopicFactory(with_post=True, forum=ForumFactory(kind=ForumKind.NEWS)) article = ForumFactory(parent=ForumFactory(type=1)) disapproved_topic = TopicFactory(with_post=True, forum=ForumFactory()) @@ -26,7 +25,6 @@ def test_context_data(client, db): assert response.status_code == 200 assert response.context_data["topics_public"].get() == topic - assert response.context_data["topics_newsfeed"].get() == news assert response.context_data["forums_category"].get() == article diff --git a/lacommunaute/pages/views.py b/lacommunaute/pages/views.py index f62474fe6..dabbc763d 100644 --- a/lacommunaute/pages/views.py +++ b/lacommunaute/pages/views.py @@ -95,7 +95,6 @@ def get_context_data(self, **kwargs: Any) -> dict[str, Any]: context["topics_public"] = Topic.objects.filter(forum__kind=ForumKind.PUBLIC_FORUM, approved=True).order_by( "-created" )[:4] - context["topics_newsfeed"] = Topic.objects.filter(forum__kind=ForumKind.NEWS).order_by("-last_post_on")[:4] context["forums_category"] = Forum.objects.filter(kind=ForumKind.PUBLIC_FORUM, parent__type=1).order_by( "-updated" )[:4] diff --git a/lacommunaute/templates/pages/home.html b/lacommunaute/templates/pages/home.html index 8e6c9f2c6..7dfdbfc77 100644 --- a/lacommunaute/templates/pages/home.html +++ b/lacommunaute/templates/pages/home.html @@ -111,34 +111,7 @@