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:
Paul Eggleton 2019-05-08 10:00:55 +12:00
parent 9fe3787027
commit 8d34e21051

View File

@ -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 = []