aboutsummaryrefslogtreecommitdiffstats
path: root/layerindex/admin.py
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2017-12-21 16:11:14 +1300
committerPaul Eggleton <paul.eggleton@linux.intel.com>2017-12-21 16:14:17 +1300
commitfa0b01082fb0596959841e95af8c516ae3f267a7 (patch)
tree8b6325d85b4954659a023ec0b9b0bf94c341bb91 /layerindex/admin.py
parentd24cfadd086149ffe299fa00c987f6386757d16d (diff)
downloadopenembedded-core-contrib-fa0b01082fb0596959841e95af8c516ae3f267a7.tar.gz
admin: fix dependency display and search
* Allow the model's __str__() function to control what is shown for each dependency item as per other model admins * Enable searching for PACKAGECONFIGs by recipe name Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Diffstat (limited to 'layerindex/admin.py')
-rw-r--r--layerindex/admin.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/layerindex/admin.py b/layerindex/admin.py
index f89cda676d..4a89062793 100644
--- a/layerindex/admin.py
+++ b/layerindex/admin.py
@@ -96,18 +96,15 @@ class RecipeAdmin(admin.ModelAdmin):
return False
class PackageConfigAdmin(admin.ModelAdmin):
- search_fields = ['feature']
- list_display = ('feature',)
+ search_fields = ['feature', 'recipe__pn']
ordering = ('feature',)
class StaticBuildDepAdmin(admin.ModelAdmin):
search_fields = ['name']
- list_display = ('name',)
filter_horizontal = ('recipes',)
class DynamicBuildDepAdmin(admin.ModelAdmin):
search_fields = ['name']
- list_display = ('name',)
filter_horizontal = ('package_configs',)
class ClassicRecipeAdmin(admin.ModelAdmin):