diff options
author | Michael Wood <michael.g.wood@intel.com> | 2016-07-21 14:43:24 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-07-26 08:10:35 +0100 |
commit | 20f939f2420636e5971378d964ac53a938178bff (patch) | |
tree | 882006551aafc60fb25bb1ed1e0a6c6a709709f9 /bitbake | |
parent | 1477886debc00c9d52b7b147710ef549824dd6ec (diff) | |
download | poky-20f939f2420636e5971378d964ac53a938178bff.tar.gz |
bitbake: toaster: bldcollector admin Remove LayerSourceAdmin
Remove the LayerSource admin from django admin interface. LayerSources
are not going to be manageable from the admin interface.
(Bitbake rev: 1c20ffcf88c5b73f6cf5e9b69b81e6bc8cd2493d)
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
Signed-off-by: Elliot Smith <elliot.smith@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/toaster/bldcollector/admin.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/bitbake/lib/toaster/bldcollector/admin.py b/bitbake/lib/toaster/bldcollector/admin.py index c1f85d73d5..7b69ecd09e 100644 --- a/bitbake/lib/toaster/bldcollector/admin.py +++ b/bitbake/lib/toaster/bldcollector/admin.py | |||
@@ -1,15 +1,12 @@ | |||
1 | from django.contrib import admin | 1 | from django.contrib import admin |
2 | from django.contrib.admin.filters import RelatedFieldListFilter | 2 | from django.contrib.admin.filters import RelatedFieldListFilter |
3 | from orm.models import BitbakeVersion, Release, LayerSource, ToasterSetting | 3 | from orm.models import BitbakeVersion, Release, ToasterSetting |
4 | from django.forms.widgets import Textarea | 4 | from django.forms.widgets import Textarea |
5 | from django import forms | 5 | from django import forms |
6 | import django.db.models as models | 6 | import django.db.models as models |
7 | 7 | ||
8 | from django.contrib.admin import widgets, helpers | 8 | from django.contrib.admin import widgets, helpers |
9 | 9 | ||
10 | class LayerSourceAdmin(admin.ModelAdmin): | ||
11 | pass | ||
12 | |||
13 | class BitbakeVersionAdmin(admin.ModelAdmin): | 10 | class BitbakeVersionAdmin(admin.ModelAdmin): |
14 | 11 | ||
15 | # we override the formfield for db URLField because of broken URL validation | 12 | # we override the formfield for db URLField because of broken URL validation |
@@ -27,7 +24,6 @@ class ReleaseAdmin(admin.ModelAdmin): | |||
27 | class ToasterSettingAdmin(admin.ModelAdmin): | 24 | class ToasterSettingAdmin(admin.ModelAdmin): |
28 | pass | 25 | pass |
29 | 26 | ||
30 | admin.site.register(LayerSource, LayerSourceAdmin) | ||
31 | admin.site.register(BitbakeVersion, BitbakeVersionAdmin) | 27 | admin.site.register(BitbakeVersion, BitbakeVersionAdmin) |
32 | admin.site.register(Release, ReleaseAdmin) | 28 | admin.site.register(Release, ReleaseAdmin) |
33 | admin.site.register(ToasterSetting, ToasterSettingAdmin) | 29 | admin.site.register(ToasterSetting, ToasterSettingAdmin) |