From 54530006b745d364d60dcf4ce372a1459d3fff78 Mon Sep 17 00:00:00 2001 From: Alexandru DAMIAN Date: Fri, 8 Aug 2014 17:17:13 +0100 Subject: 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 Signed-off-by: Richard Purdie --- bitbake/lib/toaster/orm/admin.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 bitbake/lib/toaster/orm/admin.py (limited to 'bitbake/lib/toaster/orm') diff --git a/bitbake/lib/toaster/orm/admin.py b/bitbake/lib/toaster/orm/admin.py new file mode 100644 index 0000000000..9383630486 --- /dev/null +++ b/bitbake/lib/toaster/orm/admin.py @@ -0,0 +1,17 @@ +from django.contrib import admin +from django.contrib.admin.filters import RelatedFieldListFilter +from .models import Branch, LayerSource, ToasterSetting + +class LayerSourceAdmin(admin.ModelAdmin): + pass + +class BranchAdmin(admin.ModelAdmin): + pass + +class ToasterSettingAdmin(admin.ModelAdmin): + pass + +admin.site.register(LayerSource, LayerSourceAdmin) +admin.site.register(Branch, BranchAdmin) +admin.site.register(ToasterSetting, ToasterSettingAdmin) + -- cgit v1.2.3-54-g00ecf