aboutsummaryrefslogtreecommitdiffstats
path: root/layerindex/admin.py
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2013-03-20 17:09:27 +0000
committerPaul Eggleton <paul.eggleton@linux.intel.com>2013-08-11 11:28:14 +0100
commit84709dbca6c0da26e61809d7cb8df2300b6ce288 (patch)
tree03f4721fd76f8ef3b7301dc5f2b1635aa3aad262 /layerindex/admin.py
parent1a9f73d4a75a6c64fd90d10532b030a880c11353 (diff)
downloadopenembedded-core-contrib-84709dbca6c0da26e61809d7cb8df2300b6ce288.tar.gz
Add recipe bulk change feature
This provides a way to set "meta" fields (SUMMARY, DESCRIPTION, HOMEPAGE, BUGTRACKER, SECTION, and LICENSE) for a number of recipes at once, and then download those changes in the form of one or more patch files which can be submitted for merging into the layer. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Diffstat (limited to 'layerindex/admin.py')
-rw-r--r--layerindex/admin.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/layerindex/admin.py b/layerindex/admin.py
index 85a200b53c..c2a61fba5f 100644
--- a/layerindex/admin.py
+++ b/layerindex/admin.py
@@ -80,6 +80,15 @@ class BBClassAdmin(admin.ModelAdmin):
def has_delete_permission(self, request, obj=None):
return False
+class RecipeChangeInline(admin.StackedInline):
+ model = RecipeChange
+
+class RecipeChangesetAdmin(admin.ModelAdmin):
+ model = RecipeChangeset
+ inlines = [
+ RecipeChangeInline
+ ]
+
admin.site.register(Branch, BranchAdmin)
admin.site.register(LayerItem, LayerItemAdmin)
admin.site.register(LayerBranch, LayerBranchAdmin)
@@ -91,3 +100,4 @@ admin.site.register(RecipeFileDependency)
admin.site.register(Machine, MachineAdmin)
admin.site.register(BBAppend, BBAppendAdmin)
admin.site.register(BBClass, BBClassAdmin)
+admin.site.register(RecipeChangeset, RecipeChangesetAdmin)