mirror of
git://git.yoctoproject.org/layerindex-web.git
synced 2025-07-19 20:59:01 +02:00
admin: allow searching ClassicRecipes by cover_pn
Sometimes the keyword you want to find is in cover_pn so add that to the searched fields. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
This commit is contained in:
parent
9fe3787027
commit
8d34e21051
|
@ -119,7 +119,7 @@ class SourceAdmin(admin.ModelAdmin):
|
|||
pass
|
||||
|
||||
class ClassicRecipeAdmin(admin.ModelAdmin):
|
||||
search_fields = ['filename', 'pn']
|
||||
search_fields = ['filename', 'pn', 'cover_pn']
|
||||
list_filter = ['layerbranch__layer__name', 'layerbranch__branch__name']
|
||||
def get_readonly_fields(self, request, obj=None):
|
||||
rofields = []
|
||||
|
|
Loading…
Reference in New Issue
Block a user