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})
def article_list_all(request): page = page_for_app_request(request) page.activate_language(request) return render_list(request, Article.objects.filter(category=page.app_namespace), {"page": page})