aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlban Gruin2018-09-06 20:58:39 +0200
committerAlban Gruin2018-09-06 21:03:49 +0200
commiteaed30e578f7e403a83fe0adff555e5c95654989 (patch)
treefc50d3f95b2ca55a74e468f25ef4841d9092e639
parentcbdc0e00476f66b48097ee236f627e2b8b2f4eac (diff)
models: augmentation de la limite de taille de cours à 511 caractères
Certains cours ont des noms trop long pour entrer dans la limite de 255 caractères. Signed-off-by: Alban Gruin <alban at pa1ch dot fr>
-rw-r--r--models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/models.py b/models.py
index e56d33d..c8e7b3d 100644
--- a/models.py
+++ b/models.py
@@ -229,7 +229,7 @@ class CourseManager(Manager):
class Course(models.Model):
objects = CourseManager()
- name = models.CharField(max_length=255, verbose_name="nom",
+ name = models.CharField(max_length=511, verbose_name="nom",
default="Sans nom")
type_ = models.CharField(name="type", max_length=255,
verbose_name="type de cours", null=True)