From b59f565b82c916f8e712017cebfbcd80b4123725 Mon Sep 17 00:00:00 2001 From: Bram Meir Date: Wed, 6 Mar 2024 15:34:27 +0100 Subject: [PATCH] fix: update default score project --- .../migrations/0005_alter_project_max_score.py | 18 ++++++++++++++++++ backend/api/models/project.py | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 backend/api/migrations/0005_alter_project_max_score.py diff --git a/backend/api/migrations/0005_alter_project_max_score.py b/backend/api/migrations/0005_alter_project_max_score.py new file mode 100644 index 00000000..faec3a5f --- /dev/null +++ b/backend/api/migrations/0005_alter_project_max_score.py @@ -0,0 +1,18 @@ +# Generated by Django 5.0.2 on 2024-03-06 14:20 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('api', '0004_submission_structure_checks_passed_extrachecksresult'), + ] + + operations = [ + migrations.AlterField( + model_name='project', + name='max_score', + field=models.PositiveSmallIntegerField(default=20), + ), + ] diff --git a/backend/api/models/project.py b/backend/api/models/project.py index 777f28f7..88e587fc 100644 --- a/backend/api/models/project.py +++ b/backend/api/models/project.py @@ -31,7 +31,7 @@ class Project(models.Model): max_score = models.PositiveSmallIntegerField( blank=False, null=False, - default=100 + default=20 ) # Size of the groups than can be formed