From cab883e89aac5b75229ba2bd6e78698eceba4e7d Mon Sep 17 00:00:00 2001 From: Claude Paroz Date: Fri, 18 Aug 2017 09:28:17 +0200 Subject: [PATCH] Extended Course.public to 200 chars --- stages/migrations/0024_course_public_length2.py | 16 ++++++++++++++++ stages/models.py | 2 +- 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 stages/migrations/0024_course_public_length2.py diff --git a/stages/migrations/0024_course_public_length2.py b/stages/migrations/0024_course_public_length2.py new file mode 100644 index 0000000..1d21eee --- /dev/null +++ b/stages/migrations/0024_course_public_length2.py @@ -0,0 +1,16 @@ +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('stages', '0023_course_public_length'), + ] + + operations = [ + migrations.AlterField( + model_name='course', + name='public', + field=models.CharField(default='', max_length=200, verbose_name='Classe(s)'), + ), + ] diff --git a/stages/models.py b/stages/models.py index 91ff786..1dff52b 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=100, default='') + public = models.CharField("Classe(s)", max_length=200, 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