mirror of
https://git.yoctoproject.org/poky
synced 2026-02-11 03:03:02 +01:00
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>
18 lines
458 B
Python
18 lines
458 B
Python
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)
|
|
|