-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
1 addition
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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")] |