mirror of
git://git.yoctoproject.org/layerindex-web.git
synced 2025-07-19 12:49:01 +02:00
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>
This commit is contained in:
parent
d24cfadd08
commit
fa0b01082f
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue
Block a user