From 815923e0477ef258e1c20d8ad4d317c06c346065 Mon Sep 17 00:00:00 2001 From: Claude Paroz Date: Thu, 17 Aug 2017 11:21:48 +0200 Subject: [PATCH] Extended Course.public to 100 chars --- stages/migrations/0023_course_public_length.py | 16 ++++++++++++++++ stages/models.py | 2 +- 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 stages/migrations/0023_course_public_length.py diff --git a/stages/migrations/0023_course_public_length.py b/stages/migrations/0023_course_public_length.py new file mode 100644 index 0000000..fb62657 --- /dev/null +++ b/stages/migrations/0023_course_public_length.py @@ -0,0 +1,16 @@ +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('stages', '0022_corporation_unique_name_and_city'), + ] + + operations = [ + migrations.AlterField( + model_name='course', + name='public', + field=models.CharField(default='', max_length=100, verbose_name='Classe(s)'), + ), + ] diff --git a/stages/models.py b/stages/models.py index 60ab485..91ff786 100644 --- a/stages/models.py +++ b/stages/models.py @@ -381,7 +381,7 @@ class Course(models.Model): """Cours et mandats attribués aux enseignants""" teacher = models.ForeignKey(Teacher, blank=True, null=True, verbose_name="Enseignant-e", on_delete=models.SET_NULL) - public = models.CharField("Classe(s)", max_length=40, default='') + public = models.CharField("Classe(s)", max_length=100, default='') subject = models.CharField("Sujet", max_length=100, default='') period = models.IntegerField("Nb de périodes", default=0) # Imputation comptable: compte dans lequel les frais du cours seront imputés