Skip to content

Commit

Permalink
It's only about reversing here
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiask committed Feb 12, 2024
1 parent 61b0abc commit 7160186
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions tests/testapp/translated_articles_urls.py
Original file line number Diff line number Diff line change
@@ -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("<int:pk>/", detail, name="detail")]
urlpatterns = [path("<int:pk>/", lambda request, pk: None, name="detail")]

0 comments on commit 7160186

Please sign in to comment.