Commit fd6a3089 authored by Michal Čihař's avatar Michal Čihař

Select related projects for subproject, we will use them anyway

parent f60dffa7
......@@ -57,7 +57,7 @@ def home(request):
projects = Project.objects.all_acl(request.user)
acl_projects = projects
if projects.count() == 1:
projects = SubProject.objects.filter(project=projects[0])
projects = SubProject.objects.filter(project=projects[0]).select_related()
# Warn about not filled in username (usually caused by migration of
# users from older system
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment