diff options
Diffstat (limited to 'bitbake/lib/toaster/toastergui/views.py')
-rwxr-xr-x | bitbake/lib/toaster/toastergui/views.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/toaster/toastergui/views.py b/bitbake/lib/toaster/toastergui/views.py index 243bb09d62..16f27b8022 100755 --- a/bitbake/lib/toaster/toastergui/views.py +++ b/bitbake/lib/toaster/toastergui/views.py | |||
@@ -73,7 +73,7 @@ class MimeTypeFinder(object): | |||
73 | def landing(request): | 73 | def landing(request): |
74 | # in build mode, we redirect to the command-line builds page | 74 | # in build mode, we redirect to the command-line builds page |
75 | # if there are any builds for the default (cli builds) project | 75 | # if there are any builds for the default (cli builds) project |
76 | default_project = Project.objects.get_default_project() | 76 | default_project = Project.objects.get_or_create_default_project() |
77 | default_project_builds = Build.objects.filter(project = default_project) | 77 | default_project_builds = Build.objects.filter(project = default_project) |
78 | 78 | ||
79 | # we only redirect to projects page if there is a user-generated project | 79 | # we only redirect to projects page if there is a user-generated project |