From 841153225d15922f2b3e9970dea5a7f141c8ce25 Mon Sep 17 00:00:00 2001 From: Matthias Kestenholz Date: Fri, 5 Jul 2024 11:14:14 +0200 Subject: [PATCH] We load the project anyway, so load the project --- projects/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/views.py b/projects/views.py index 9ddcc6b..cfe3c49 100644 --- a/projects/views.py +++ b/projects/views.py @@ -42,7 +42,7 @@ def project(request, slug): @login_required def catalog(request, project, language_code, domain): catalog = get_object_or_404( - Catalog.objects.for_user(request.user), + Catalog.objects.for_user(request.user).select_related("project"), project__slug=project, language_code=language_code, domain=domain,