From c3f46815341e1af0829ece229e2123d4dde999a0 Mon Sep 17 00:00:00 2001 From: Owen Ye Date: Sun, 5 Nov 2023 14:42:22 -0800 Subject: [PATCH] Update Max character count on fields ISSUE #495 Pull Request - Owen --- hknweb/academics/migrations/0001_initial.py | 2 +- hknweb/academics/migrations/0002_auto_20211223_1902.py | 2 +- hknweb/events/models/event.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hknweb/academics/migrations/0001_initial.py b/hknweb/academics/migrations/0001_initial.py index 27b4f23a..f169a878 100644 --- a/hknweb/academics/migrations/0001_initial.py +++ b/hknweb/academics/migrations/0001_initial.py @@ -91,7 +91,7 @@ class Migration(migrations.Migration): name='Rating', fields=[ ('academicentity_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='academics.AcademicEntity')), - ('question_text', models.TextField(max_length=500)), + ('question_text', models.TextField(max_length=2000)), ('inverted', models.BooleanField(default=False)), ('range_max', models.IntegerField(default=7)), ('rating_value', models.FloatField()), diff --git a/hknweb/academics/migrations/0002_auto_20211223_1902.py b/hknweb/academics/migrations/0002_auto_20211223_1902.py index 8fd747d2..d3286b88 100644 --- a/hknweb/academics/migrations/0002_auto_20211223_1902.py +++ b/hknweb/academics/migrations/0002_auto_20211223_1902.py @@ -17,6 +17,6 @@ class Migration(migrations.Migration): migrations.AddField( model_name='icsr', name='course_name', - field=models.TextField(default='', max_length=500), + field=models.TextField(default='', max_length=2000), ), ] diff --git a/hknweb/events/models/event.py b/hknweb/events/models/event.py index 41e893e0..2e4bf181 100644 --- a/hknweb/events/models/event.py +++ b/hknweb/events/models/event.py @@ -17,7 +17,7 @@ class Event(models.Model): end_time = models.DateTimeField() location = models.CharField(max_length=255) event_type = models.ForeignKey(EventType, models.CASCADE) - description = MarkdownxField(max_length=500) + description = MarkdownxField(max_length=2000) rsvp_limit = models.PositiveIntegerField(null=True, blank=True) access_level = models.IntegerField( choices=ACCESS_LEVELS,