From 71601862e22596fe73483a81168e8ad36efa0058 Mon Sep 17 00:00:00 2001 From: Matthias Kestenholz Date: Mon, 12 Feb 2024 17:59:33 +0100 Subject: [PATCH] It's only about reversing here --- tests/testapp/translated_articles_urls.py | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/tests/testapp/translated_articles_urls.py b/tests/testapp/translated_articles_urls.py index fec0703..8eaadc1 100644 --- a/tests/testapp/translated_articles_urls.py +++ b/tests/testapp/translated_articles_urls.py @@ -1,18 +1,5 @@ -from django.shortcuts import get_object_or_404 from django.urls import path -from feincms3.applications import page_for_app_request -from feincms3.shortcuts import render_detail -from testapp.models import TranslatedArticle - - -def detail(request, pk): - page = page_for_app_request(request) - page.activate_language(request) - return render_detail( - request, get_object_or_404(TranslatedArticle, pk=pk), {"page": page} - ) - app_name = "translated-articles" -urlpatterns = [path("/", detail, name="detail")] +urlpatterns = [path("/", lambda request, pk: None, name="detail")]