mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Delete "ReportTemplate" class
This commit is contained in:
parent
771b2117c4
commit
116d966d29
@ -3,8 +3,7 @@ from __future__ import unicode_literals
|
||||
|
||||
from django.contrib import admin
|
||||
|
||||
from .models import ReportTemplate, ReportAsset
|
||||
from .models import TestReport
|
||||
from .models import TestReport, ReportAsset
|
||||
|
||||
|
||||
class ReportTemplateAdmin(admin.ModelAdmin):
|
||||
@ -17,6 +16,5 @@ class ReportAssetAdmin(admin.ModelAdmin):
|
||||
list_display = ('asset', 'description')
|
||||
|
||||
|
||||
admin.site.register(ReportTemplate, ReportTemplateAdmin)
|
||||
admin.site.register(TestReport, ReportTemplateAdmin)
|
||||
admin.site.register(ReportAsset, ReportAssetAdmin)
|
||||
|
16
InvenTree/report/migrations/0002_delete_reporttemplate.py
Normal file
16
InvenTree/report/migrations/0002_delete_reporttemplate.py
Normal file
@ -0,0 +1,16 @@
|
||||
# Generated by Django 3.0.7 on 2020-08-22 23:10
|
||||
|
||||
from django.db import migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('report', '0001_initial'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.DeleteModel(
|
||||
name='ReportTemplate',
|
||||
),
|
||||
]
|
@ -151,15 +151,6 @@ class ReportTemplateBase(models.Model):
|
||||
abstract = True
|
||||
|
||||
|
||||
class ReportTemplate(ReportTemplateBase):
|
||||
"""
|
||||
A simple reporting template which is used to upload template files,
|
||||
which can then be used in other concrete template classes.
|
||||
"""
|
||||
|
||||
pass
|
||||
|
||||
|
||||
class PartFilterMixin(models.Model):
|
||||
"""
|
||||
A model mixin used for matching a report type against a Part object.
|
||||
|
Loading…
Reference in New Issue
Block a user