mirror of
https://github.com/inventree/InvenTree.git
synced 2026-10-05 01:45:28 +00:00
Add ReportAsset model
- Files which can be embedded into a report
This commit is contained in:
1 parent
b78fe88c26
commit
70c5b27d22
5 files changed
+84
-28
No files matched your search
@@ -3,7 +3,7 @@ from __future__ import unicode_literals
|
||||
|
||||
from django.contrib import admin
|
||||
|
||||
from .models import ReportTemplate
|
||||
from .models import ReportTemplate, ReportAsset
|
||||
|
||||
|
||||
class ReportTemplateAdmin(admin.ModelAdmin):
|
||||
@@ -11,4 +11,10 @@ class ReportTemplateAdmin(admin.ModelAdmin):
|
||||
list_display = ('template', 'description')
|
||||
|
||||
|
||||
class ReportAssetAdmin(admin.ModelAdmin):
|
||||
|
||||
list_display = ('asset', 'description')
|
||||
|
||||
|
||||
admin.site.register(ReportTemplate, ReportTemplateAdmin)
|
||||
admin.site.register(ReportAsset, ReportAssetAdmin)
|
||||
Reference in new issue
Block a user