summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/bldcontrol/admin.py
diff options
context:
space:
mode:
authorAlexandru DAMIAN <alexandru.damian@intel.com>2014-08-08 17:17:13 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-08-29 13:56:49 +0100
commit54530006b745d364d60dcf4ce372a1459d3fff78 (patch)
tree72d40fa827dd19dbad4d77f63266cd3ac6ba6c04 /bitbake/lib/toaster/bldcontrol/admin.py
parent234226b9055a3b23addcdaa7a77812dc7aa79134 (diff)
downloadpoky-54530006b745d364d60dcf4ce372a1459d3fff78.tar.gz
bitbake: toaster: enable admin interface on select models
We enable the admin interface in Toaster. We add admin models for Build Environments (where the sysadmin can configure where the builds take place) and for Layer Sources (marking the upstream provider for layer information). The admin interface and associated data are enabled only for the MANAGED version. (Bitbake rev: 6618613c9210fb44d36d90f5f2404b435f10dfc8) Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/bldcontrol/admin.py')
-rw-r--r--bitbake/lib/toaster/bldcontrol/admin.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/bldcontrol/admin.py b/bitbake/lib/toaster/bldcontrol/admin.py
new file mode 100644
index 0000000000..fcbe5f5935
--- /dev/null
+++ b/bitbake/lib/toaster/bldcontrol/admin.py
@@ -0,0 +1,8 @@
1from django.contrib import admin
2from django.contrib.admin.filters import RelatedFieldListFilter
3from .models import BuildEnvironment
4
5class BuildEnvironmentAdmin(admin.ModelAdmin):
6 pass
7
8admin.site.register(BuildEnvironment, BuildEnvironmentAdmin)