From e56e0e37ccbafa83ab885d6e875111843fa440b2 Mon Sep 17 00:00:00 2001 From: Rushil Umaretiya Date: Mon, 20 Sep 2021 13:21:52 -0400 Subject: [PATCH] fix: increased flag length --- .../migrations/0011_alter_challenge_flag.py | 18 ++++++++++++++++++ hunt/apps/main/models.py | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 hunt/apps/main/migrations/0011_alter_challenge_flag.py diff --git a/hunt/apps/main/migrations/0011_alter_challenge_flag.py b/hunt/apps/main/migrations/0011_alter_challenge_flag.py new file mode 100644 index 0000000..962f994 --- /dev/null +++ b/hunt/apps/main/migrations/0011_alter_challenge_flag.py @@ -0,0 +1,18 @@ +# Generated by Django 3.2.7 on 2021-09-20 17:21 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('main', '0010_remove_category_category'), + ] + + operations = [ + migrations.AlterField( + model_name='challenge', + name='flag', + field=models.CharField(max_length=100), + ), + ] diff --git a/hunt/apps/main/models.py b/hunt/apps/main/models.py index 0fd51ec..86a4222 100644 --- a/hunt/apps/main/models.py +++ b/hunt/apps/main/models.py @@ -15,7 +15,7 @@ class Challenge(models.Model): name = models.CharField(max_length=100, null=False, blank=False) short_description = models.CharField(max_length=500, null=False, blank=False) description = RichTextField(null=False, blank=False) - flag = models.CharField(max_length=50, null=False, blank=False) + flag = models.CharField(max_length=100, null=False, blank=False) points = models.IntegerField(null=False, blank=False) exclusive = models.BooleanField(default=False) locked = models.BooleanField(default=False)