diff options
Diffstat (limited to 'bitbake/lib/toaster/bldviewer')
-rw-r--r-- | bitbake/lib/toaster/bldviewer/api.py | 3 | ||||
-rw-r--r-- | bitbake/lib/toaster/bldviewer/views.py | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/bitbake/lib/toaster/bldviewer/api.py b/bitbake/lib/toaster/bldviewer/api.py index 76d45c7d2c..c4c6135584 100644 --- a/bitbake/lib/toaster/bldviewer/api.py +++ b/bitbake/lib/toaster/bldviewer/api.py | |||
@@ -25,12 +25,13 @@ from django.conf.urls import patterns, include, url | |||
25 | urlpatterns = patterns('bldviewer.views', | 25 | urlpatterns = patterns('bldviewer.views', |
26 | url(r'^builds$', 'model_explorer', {'model_name':'build'}, name='builds'), | 26 | url(r'^builds$', 'model_explorer', {'model_name':'build'}, name='builds'), |
27 | url(r'^targets$', 'model_explorer', {'model_name':'target'}, name='targets'), | 27 | url(r'^targets$', 'model_explorer', {'model_name':'target'}, name='targets'), |
28 | url(r'^target_files$', 'model_explorer', {'model_name':'target_file'}, name='target_file'), | ||
28 | url(r'^target_image_file$', 'model_explorer', {'model_name':'target_image_file'}, name='target_image_file'), | 29 | url(r'^target_image_file$', 'model_explorer', {'model_name':'target_image_file'}, name='target_image_file'), |
29 | url(r'^tasks$', 'model_explorer', {'model_name':'task'}, name='task'), | 30 | url(r'^tasks$', 'model_explorer', {'model_name':'task'}, name='task'), |
30 | url(r'^task_dependencies$', 'model_explorer', {'model_name':'task_dependency'}, name='task_dependencies'), | 31 | url(r'^task_dependencies$', 'model_explorer', {'model_name':'task_dependency'}, name='task_dependencies'), |
31 | url(r'^packages$', 'model_explorer', {'model_name':'package'}, name='package'), | 32 | url(r'^packages$', 'model_explorer', {'model_name':'package'}, name='package'), |
32 | url(r'^package_dependencies$', 'model_explorer', {'model_name':'package_dependency'}, name='package_dependency'), | 33 | url(r'^package_dependencies$', 'model_explorer', {'model_name':'package_dependency'}, name='package_dependency'), |
33 | url(r'^target_packages$', 'model_explorer', {'model_name':'target_package'}, name='target_packages'), | 34 | url(r'^target_packages$', 'model_explorer', {'model_name':'target_installed_package'}, name='target_packages'), |
34 | url(r'^target_installed_packages$', 'model_explorer', {'model_name':'target_installed_package'}, name='target_installed_package'), | 35 | url(r'^target_installed_packages$', 'model_explorer', {'model_name':'target_installed_package'}, name='target_installed_package'), |
35 | url(r'^package_files$', 'model_explorer', {'model_name':'build_file'}, name='build_file'), | 36 | url(r'^package_files$', 'model_explorer', {'model_name':'build_file'}, name='build_file'), |
36 | url(r'^layers$', 'model_explorer', {'model_name':'layer'}, name='layer'), | 37 | url(r'^layers$', 'model_explorer', {'model_name':'layer'}, name='layer'), |
diff --git a/bitbake/lib/toaster/bldviewer/views.py b/bitbake/lib/toaster/bldviewer/views.py index 6f863796db..c2e0c0c25d 100644 --- a/bitbake/lib/toaster/bldviewer/views.py +++ b/bitbake/lib/toaster/bldviewer/views.py | |||
@@ -25,7 +25,7 @@ from django.db.models import Q | |||
25 | from django.shortcuts import render | 25 | from django.shortcuts import render |
26 | from orm.models import Build, Target, Task, Layer, Layer_Version, Recipe, LogMessage, Variable, Target_Installed_Package | 26 | from orm.models import Build, Target, Task, Layer, Layer_Version, Recipe, LogMessage, Variable, Target_Installed_Package |
27 | from orm.models import Task_Dependency, Recipe_Dependency, Package, Package_File, Package_Dependency | 27 | from orm.models import Task_Dependency, Recipe_Dependency, Package, Package_File, Package_Dependency |
28 | from orm.models import Target_Installed_Package, VariableHistory, Target_Image_File | 28 | from orm.models import Target_Installed_Package, VariableHistory, Target_Image_File, Target_File |
29 | from django.views.decorators.cache import cache_control | 29 | from django.views.decorators.cache import cache_control |
30 | from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger | 30 | from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger |
31 | 31 | ||
@@ -159,6 +159,7 @@ def model_explorer(request, model_name): | |||
159 | model_mapping = { | 159 | model_mapping = { |
160 | 'build': Build, | 160 | 'build': Build, |
161 | 'target': Target, | 161 | 'target': Target, |
162 | 'target_file': Target_File, | ||
162 | 'target_image_file': Target_Image_File, | 163 | 'target_image_file': Target_Image_File, |
163 | 'task': Task, | 164 | 'task': Task, |
164 | 'task_dependency': Task_Dependency, | 165 | 'task_dependency': Task_Dependency, |