diff --git a/src/backend/InvenTree/report/migrations/0022_reporttemplate.py b/src/backend/InvenTree/report/migrations/0022_reporttemplate.py index 9d3677c999..c0c4c01b3f 100644 --- a/src/backend/InvenTree/report/migrations/0022_reporttemplate.py +++ b/src/backend/InvenTree/report/migrations/0022_reporttemplate.py @@ -20,7 +20,7 @@ class Migration(migrations.Migration): fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('metadata', models.JSONField(blank=True, help_text='JSON metadata field, for use by external plugins', null=True, verbose_name='Plugin Metadata')), - ('name', models.CharField(help_text='Template name', unique=True, max_length=100, verbose_name='Name')), + ('name', models.CharField(help_text='Template name', max_length=100, verbose_name='Name')), ('template', models.FileField(help_text='Template file', upload_to='report/report', validators=[django.core.validators.FileExtensionValidator(allowed_extensions=['html', 'htm'])], verbose_name='Template')), ('description', models.CharField(help_text='Template description', max_length=250, verbose_name='Description')), ('revision', models.PositiveIntegerField(default=1, editable=False, help_text='Revision number (auto-increments)', verbose_name='Revision')), diff --git a/src/backend/InvenTree/report/migrations/0025_labeltemplate.py b/src/backend/InvenTree/report/migrations/0025_labeltemplate.py index eaeb54daf6..4ce2babc9f 100644 --- a/src/backend/InvenTree/report/migrations/0025_labeltemplate.py +++ b/src/backend/InvenTree/report/migrations/0025_labeltemplate.py @@ -19,7 +19,7 @@ class Migration(migrations.Migration): fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('metadata', models.JSONField(blank=True, help_text='JSON metadata field, for use by external plugins', null=True, verbose_name='Plugin Metadata')), - ('name', models.CharField(help_text='Template name', max_length=100, unique=True, verbose_name='Name')), + ('name', models.CharField(help_text='Template name', max_length=100, verbose_name='Name')), ('description', models.CharField(help_text='Template description', max_length=250, verbose_name='Description')), ('template', models.FileField(help_text='Template file', upload_to='report/label', validators=[django.core.validators.FileExtensionValidator(allowed_extensions=['html', 'htm'])], verbose_name='Template')), ('revision', models.PositiveIntegerField(default=1, editable=False, help_text='Revision number (auto-increments)', verbose_name='Revision')), diff --git a/src/backend/InvenTree/report/models.py b/src/backend/InvenTree/report/models.py index 692ed75530..053e6cdaeb 100644 --- a/src/backend/InvenTree/report/models.py +++ b/src/backend/InvenTree/report/models.py @@ -148,7 +148,6 @@ class ReportTemplateBase(MetadataMixin, InvenTree.models.InvenTreeModel): max_length=100, verbose_name=_('Name'), help_text=_('Template name'), - unique=True, ) description = models.CharField(