mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-29 20:16:44 +00:00
21 lines
463 B
Python
21 lines
463 B
Python
# -*- coding: utf-8 -*-
|
|
from __future__ import unicode_literals
|
|
|
|
from django.contrib import admin
|
|
|
|
from .models import TestReport, ReportAsset
|
|
|
|
|
|
class ReportTemplateAdmin(admin.ModelAdmin):
|
|
|
|
list_display = ('name', 'description', 'template', 'filters', 'enabled')
|
|
|
|
|
|
class ReportAssetAdmin(admin.ModelAdmin):
|
|
|
|
list_display = ('asset', 'description')
|
|
|
|
|
|
admin.site.register(TestReport, ReportTemplateAdmin)
|
|
admin.site.register(ReportAsset, ReportAssetAdmin)
|