diff options
author | Alban Gruin | 2017-10-19 21:38:40 +0200 |
---|---|---|
committer | Alban Gruin | 2017-10-19 21:38:40 +0200 |
commit | e983619333a715bbc35deecf019a95addb5b6009 (patch) | |
tree | 0b822063a033b74d4fe186fb631ccbc70b0cc6d1 /models.py | |
parent | 781ba0419a5e7bba423c922180c2c2db2327543a (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.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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) |