From 2fe43f09df8de61e0b060e6f4ea4ed35d6c72802 Mon Sep 17 00:00:00 2001 From: vcai122 Date: Sun, 24 Nov 2024 13:07:06 -0500 Subject: [PATCH] Make Wrapped Template Field Longer --- .../0003_alter_page_template_path.py | 18 ++++++++++++++++++ backend/wrapped/models.py | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 backend/wrapped/migrations/0003_alter_page_template_path.py diff --git a/backend/wrapped/migrations/0003_alter_page_template_path.py b/backend/wrapped/migrations/0003_alter_page_template_path.py new file mode 100644 index 00000000..56e73d0d --- /dev/null +++ b/backend/wrapped/migrations/0003_alter_page_template_path.py @@ -0,0 +1,18 @@ +# Generated by Django 5.0.2 on 2024-11-24 18:06 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ("wrapped", "0002_rename_page_globalstatpagefield_page_and_more"), + ] + + operations = [ + migrations.AlterField( + model_name="page", + name="template_path", + field=models.CharField(max_length=200), + ), + ] diff --git a/backend/wrapped/models.py b/backend/wrapped/models.py index 04445427..57fea1b3 100644 --- a/backend/wrapped/models.py +++ b/backend/wrapped/models.py @@ -60,7 +60,7 @@ def __str__(self) -> str: class Page(models.Model): name = models.CharField(max_length=50, primary_key=True, null=False, blank=False) - template_path = models.CharField(max_length=50, null=False, blank=False) + template_path = models.CharField(max_length=200, null=False, blank=False) individual_stats = models.ManyToManyField( IndividualStatKey, through="IndividualStatPageField", blank=True )