diff options
-rwxr-xr-x | bitbake/lib/toaster/toastergui/views.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bitbake/lib/toaster/toastergui/views.py b/bitbake/lib/toaster/toastergui/views.py index c583d9613a..6c73eb4c50 100755 --- a/bitbake/lib/toaster/toastergui/views.py +++ b/bitbake/lib/toaster/toastergui/views.py | |||
@@ -54,7 +54,11 @@ logger = logging.getLogger("toaster") | |||
54 | # all new sessions should come through the landing page; | 54 | # all new sessions should come through the landing page; |
55 | # determine in which mode we are running in, and redirect appropriately | 55 | # determine in which mode we are running in, and redirect appropriately |
56 | def landing(request): | 56 | def landing(request): |
57 | if Build.objects.count() == 0 and Project.objects.count() > 0: | 57 | # we only redirect to projects page if there is a user-generated project |
58 | user_projects = Project.objects.filter(is_default = False) | ||
59 | has_user_project = user_projects.count() > 0 | ||
60 | |||
61 | if Build.objects.count() == 0 and has_user_project: | ||
58 | return redirect(reverse('all-projects'), permanent = False) | 62 | return redirect(reverse('all-projects'), permanent = False) |
59 | 63 | ||
60 | if Build.objects.all().count() > 0: | 64 | if Build.objects.all().count() > 0: |