aboutsummaryrefslogtreecommitdiff
path: root/models.py
diff options
context:
space:
mode:
authorAlban Gruin2017-10-19 21:38:40 +0200
committerAlban Gruin2017-10-22 13:16:02 +0200
commit05b8c81e21dbd33680683238ee044d20a9882a04 (patch)
tree064f9b818b2e4d4caf6e6f49f5819defe6c4d997 /models.py
parent044e7412856aeefa3c82b39130aa8df6582a0826 (diff)
Suppression des champs retirés de l’interface d’administration.
La longueur du champ sous-groupe est maintenant fixée à 16.
Diffstat (limited to 'models.py')
-rw-r--r--models.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/models.py b/models.py
index bfc026b..868cbd1 100644
--- a/models.py
+++ b/models.py
@@ -90,8 +90,9 @@ class Group(models.Model):
verbose_name="emploi du temps")
mention = models.CharField(max_length=128)
- subgroup = models.CharField(max_length=1, verbose_name="sous-groupe",
+ subgroup = models.CharField(max_length=16, verbose_name="sous-groupe",
null=True)
+
slug = models.SlugField(max_length=64, default="")
hidden = models.BooleanField(verbose_name="caché", default=False)