Return-Path: Received: from bongo.birch.relay.mailchannels.net (bongo.birch.relay.mailchannels.net [23.83.209.21]) by mail.openembedded.org (Postfix) with ESMTP id D91C165CBF for ; Thu, 21 Jul 2016 13:39:31 +0000 (UTC) X-Sender-Id: wwwh|x-authuser|elliot@townx.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 917536571E; Thu, 21 Jul 2016 13:39:30 +0000 (UTC) Received: from uscentral428.accountservergroup.com (ip-10-120-4-226.us-west-2.compute.internal [10.120.4.226]) by relay.mailchannels.net (Postfix) with ESMTPA id 1B05E65E45; Thu, 21 Jul 2016 13:39:30 +0000 (UTC) X-Sender-Id: wwwh|x-authuser|elliot@townx.org Received: from uscentral428.accountservergroup.com (uscentral428.accountservergroup.com [10.21.150.52]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.7.1); Thu, 21 Jul 2016 13:39:30 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: wwwh|x-authuser|elliot@townx.org X-MailChannels-Auth-Id: wwwh X-MC-Loop-Signature: 1469108370378:1894955668 X-MC-Ingress-Time: 1469108370378 Received: from [176.249.240.35] (port=56876 helo=localhost.localdomain) by uscentral428.accountservergroup.com with esmtpa (Exim 4.87) (envelope-from ) id 1bQECG-00012R-UL; Thu, 21 Jul 2016 09:39:29 -0400 From: Elliot Smith To: bitbake-devel@lists.openembedded.org Date: Thu, 21 Jul 2016 14:39:04 +0100 Message-Id: <1469108352-12098-2-git-send-email-elliot.smith@intel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1469108352-12098-1-git-send-email-elliot.smith@intel.com> References: <1469108352-12098-1-git-send-email-elliot.smith@intel.com> X-AuthUser: elliot@townx.org Subject: [PATCH 02/10] toaster: bldcollector admin Remove LayerSourceAdmin X-BeenThere: bitbake-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussion that advance bitbake development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Jul 2016 13:39:33 -0000 From: Michael Wood Remove the LayerSource admin from django admin interface. LayerSources are not going to be manageable from the admin interface. Signed-off-by: Michael Wood --- bitbake/lib/toaster/bldcollector/admin.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/bitbake/lib/toaster/bldcollector/admin.py b/bitbake/lib/toaster/bldcollector/admin.py index c1f85d7..7b69ecd 100644 --- a/bitbake/lib/toaster/bldcollector/admin.py +++ b/bitbake/lib/toaster/bldcollector/admin.py @@ -1,15 +1,12 @@ from django.contrib import admin from django.contrib.admin.filters import RelatedFieldListFilter -from orm.models import BitbakeVersion, Release, LayerSource, ToasterSetting +from orm.models import BitbakeVersion, Release, ToasterSetting from django.forms.widgets import Textarea from django import forms import django.db.models as models from django.contrib.admin import widgets, helpers -class LayerSourceAdmin(admin.ModelAdmin): - pass - class BitbakeVersionAdmin(admin.ModelAdmin): # we override the formfield for db URLField because of broken URL validation @@ -27,7 +24,6 @@ class ReleaseAdmin(admin.ModelAdmin): class ToasterSettingAdmin(admin.ModelAdmin): pass -admin.site.register(LayerSource, LayerSourceAdmin) admin.site.register(BitbakeVersion, BitbakeVersionAdmin) admin.site.register(Release, ReleaseAdmin) admin.site.register(ToasterSetting, ToasterSettingAdmin) -- 2.7.4