Skip to content

Commit

Permalink
increase max text for report template and base template name field
Browse files Browse the repository at this point in the history
  • Loading branch information
sadnub committed Nov 7, 2023
1 parent 947a431 commit 374ff0a
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Generated by Django 4.2.6 on 2023-11-07 18:22

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('reporting', '0002_alter_reporttemplate_type'),
]

operations = [
migrations.AlterField(
model_name='reporthtmltemplate',
name='name',
field=models.CharField(max_length=200, unique=True),
),
migrations.AlterField(
model_name='reporttemplate',
name='name',
field=models.CharField(max_length=200, unique=True),
),
]
4 changes: 2 additions & 2 deletions api/tacticalrmm/ee/reporting/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class ReportFormatType(models.TextChoices):


class ReportTemplate(models.Model):
name = models.CharField(max_length=50, unique=True)
name = models.CharField(max_length=200, unique=True)
template_md = models.TextField()
template_css = models.TextField(null=True, blank=True)
template_html = models.ForeignKey(
Expand All @@ -44,7 +44,7 @@ def __str__(self) -> str:


class ReportHTMLTemplate(models.Model):
name = models.CharField(max_length=50, unique=True)
name = models.CharField(max_length=200, unique=True)
html = models.TextField()

def __str__(self) -> str:
Expand Down

0 comments on commit 374ff0a

Please sign in to comment.