From 2ac26e4294a029075071a8c6cfd5c2bdea801337 Mon Sep 17 00:00:00 2001 From: Michael Wood Date: Tue, 12 May 2015 15:34:45 +0100 Subject: bitbake: toaster: managedcontextprocessor requires Project imported Temporarily move this import into the main view so that the context processor can return a value for projects (albeit an unused one) when in non managed mode. This will be changed in the near future but this will fix it until we finish the refactoring. (Bitbake rev: db61587fdd78af071d8a2a50d494fe159bf169a6) Signed-off-by: Michael Wood Signed-off-by: Richard Purdie --- bitbake/lib/toaster/toastergui/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bitbake/lib') diff --git a/bitbake/lib/toaster/toastergui/views.py b/bitbake/lib/toaster/toastergui/views.py index 44f33beba6..c22f2c1aba 100755 --- a/bitbake/lib/toaster/toastergui/views.py +++ b/bitbake/lib/toaster/toastergui/views.py @@ -1795,6 +1795,7 @@ def managedcontextprocessor(request): import toastermain.settings +from orm.models import Project, ProjectLayer, ProjectTarget, ProjectVariable # we have a set of functions if we're in managed mode, or # a default "page not available" simple functions for interactive mode @@ -1804,7 +1805,6 @@ if toastermain.settings.MANAGED: from django.contrib.auth import authenticate, login from django.contrib.auth.decorators import login_required - from orm.models import Project, ProjectLayer, ProjectTarget, ProjectVariable from orm.models import Branch, LayerSource, ToasterSetting, Release, Machine, LayerVersionDependency from bldcontrol.models import BuildRequest -- cgit v1.2.3-54-g00ecf