From 5aec487c120fdd65208c78d6c1bb20ccb61cd2a2 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Thu, 4 Feb 2021 21:15:07 +1100 Subject: [PATCH] TestReport name no longer needs to be unique --- .../migrations/0008_auto_20210204_2100.py | 18 ++++++++++++++++++ InvenTree/report/models.py | 1 - 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 InvenTree/report/migrations/0008_auto_20210204_2100.py diff --git a/InvenTree/report/migrations/0008_auto_20210204_2100.py b/InvenTree/report/migrations/0008_auto_20210204_2100.py new file mode 100644 index 0000000000..35136676d4 --- /dev/null +++ b/InvenTree/report/migrations/0008_auto_20210204_2100.py @@ -0,0 +1,18 @@ +# Generated by Django 3.0.7 on 2021-02-04 10:00 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('report', '0007_auto_20210204_1617'), + ] + + operations = [ + migrations.AlterField( + model_name='testreport', + name='name', + field=models.CharField(help_text='Template name', max_length=100, verbose_name='Name'), + ), + ] diff --git a/InvenTree/report/models.py b/InvenTree/report/models.py index 838e669f69..1e0e5a6335 100644 --- a/InvenTree/report/models.py +++ b/InvenTree/report/models.py @@ -100,7 +100,6 @@ class ReportBase(models.Model): blank=False, max_length=100, verbose_name=_('Name'), help_text=_('Template name'), - unique=True, ) template = models.FileField(