diff options
author | Yongqin Liu <yongqin.liu@linaro.org> | 2020-03-03 11:33:01 +0800 |
---|---|---|
committer | Yongqin Liu <yongqin.liu@linaro.org> | 2020-03-03 23:52:45 +0800 |
commit | b884affad4a645dca21e00313a62f9f8e000749f (patch) | |
tree | 844a32c520b01d400ac9b2e67f4d8889791db80f /lkft/admin.py | |
parent | ab49b1c7555e4d21058de268b20d3acc807545b3 (diff) |
and add the qa-report build id into the ReportBuild table
Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
Change-Id: I7ca8c43f01dd0b2e265340d1bbe136515f7d3a73
Diffstat (limited to 'lkft/admin.py')
-rw-r--r-- | lkft/admin.py | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/lkft/admin.py b/lkft/admin.py index 7a59751..7883c2b 100644 --- a/lkft/admin.py +++ b/lkft/admin.py @@ -2,19 +2,30 @@ from __future__ import unicode_literals from django.contrib import admin -from .models import KernelChange, CiBuild, ReportBuild +from .models import KernelChange, CiBuild, ReportBuild, ReportProject # Register your models here. class KernelChangeAdmin(admin.ModelAdmin): list_display = ['branch', 'describe', 'trigger_name', 'trigger_number', 'reported'] + search_fields = ('branch', 'describe') class CiBuildAdmin(admin.ModelAdmin): - list_display = ['name', 'number'] + list_display = ['name', 'number', 'kernel_change', 'result'] + search_fields = ('name', 'number', 'kernel_change') + class ReportBuildAdmin(admin.ModelAdmin): - list_display = ['group', 'name', 'version', 'number_passed', 'number_failed', 'number_total', 'modules_done', 'modules_total'] + list_display = ['qa_project', 'version', 'number_passed', 'number_failed', 'number_total', 'modules_done', 'modules_total', 'qa_build_id'] + search_fields = ('qa_project', 'version') + + +class ReportProjectAdmin(admin.ModelAdmin): + list_display = ['group', 'name', 'slug', 'project_id'] + search_fields = ['group', 'name', 'slug', 'project_id'] + admin.site.register(KernelChange, KernelChangeAdmin) admin.site.register(CiBuild, CiBuildAdmin) admin.site.register(ReportBuild, ReportBuildAdmin) +admin.site.register(ReportProject, ReportProjectAdmin) |