From 93f25a19d6501d0c6fa13707ccbd1862b40a9334 Mon Sep 17 00:00:00 2001 From: bwc9876 Date: Fri, 17 Dec 2021 12:12:04 -0500 Subject: [PATCH] Increased the max length of the name column for rubrics --- .../migrations/0003_alter_rubric_name.py | 18 ++++++++++++++++++ Instructor/models.py | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 Instructor/migrations/0003_alter_rubric_name.py diff --git a/Instructor/migrations/0003_alter_rubric_name.py b/Instructor/migrations/0003_alter_rubric_name.py new file mode 100644 index 0000000..f7401c5 --- /dev/null +++ b/Instructor/migrations/0003_alter_rubric_name.py @@ -0,0 +1,18 @@ +# Generated by Django 4.0 on 2021-12-17 12:11 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + dependencies = [ + ('Instructor', '0002_initial'), + ] + + operations = [ + migrations.AlterField( + model_name='rubric', + name='name', + field=models.CharField(help_text='The name the students will use to pick a rubric when requesting a review', + max_length=50), + ), + ] diff --git a/Instructor/models.py b/Instructor/models.py index 5197bfd..70dabef 100644 --- a/Instructor/models.py +++ b/Instructor/models.py @@ -89,7 +89,7 @@ class Rubric(BaseModel): :cvar max_score: The max possible score that a student can get with this rubric """ - name = models.CharField(max_length=20, + name = models.CharField(max_length=50, help_text="The name the students will use to pick a rubric when requesting a review") max_score = models.FloatField() -- knotmirror 0.0.1