From 111798d167585fd562703fa21ffd4541797a2062 Mon Sep 17 00:00:00 2001 From: Tom Teichler <tom.teichler@teckids.org> Date: Sat, 7 Mar 2020 14:54:42 +0100 Subject: [PATCH] Add missing max_length attribute to CharFields --- aleksis/apps/chronos/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aleksis/apps/chronos/models.py b/aleksis/apps/chronos/models.py index 99ba380c..f50be621 100644 --- a/aleksis/apps/chronos/models.py +++ b/aleksis/apps/chronos/models.py @@ -584,7 +584,7 @@ class TimetableWidget(DashboardWidget): class AbsenceReason(ExtensibleModel): - title = models.CharField(verbose_name=_("Title")) + title = models.CharField(verbose_name=_("Title"), max_length=50) description = models.TextField(verbose_name=_("Description")) class Meta: @@ -612,7 +612,7 @@ class Exam(ExtensibleModel): date = models.DateField(verbose_name=_("Date of exam"), null=True) periodfrom = models.IntegerField(verbose_name=_("Effective start period of exam"), null=True) periodto = models.IntegerField(verbose_name=_("Effective end period of exam"), null=True) - title = models.CharField(verbose_name=_("Title")) + title = models.CharField(verbose_name=_("Title"), max_length=50) comment = models.TextField(verbose_name=_("Comment")) class Meta: -- GitLab