diff --git a/aleksis/apps/chronos/migrations/0007_advanced_models_from_untis.py b/aleksis/apps/chronos/migrations/0007_advanced_models_from_untis.py index 94eb0cc768aadf9e89269040a0d186171f53247e..01effee56dbeb30dde699a5f3acd1abaf907d027 100644 --- a/aleksis/apps/chronos/migrations/0007_advanced_models_from_untis.py +++ b/aleksis/apps/chronos/migrations/0007_advanced_models_from_untis.py @@ -20,7 +20,7 @@ class Migration(migrations.Migration): ('extended_data', django.contrib.postgres.fields.jsonb.JSONField(default=dict, editable=False)), ('date_start', models.DateField(null=True, verbose_name='Effective start date of absence')), ('date_end', models.DateField(null=True, verbose_name='Effective end date of absence')), - ('comment', models.TextField(verbose_name='Comment')), + ('comment', models.TextField(verbose_name='Comment'), null=True, blank=True), ], options={ 'verbose_name': 'Absence', @@ -33,7 +33,7 @@ class Migration(migrations.Migration): ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('extended_data', django.contrib.postgres.fields.jsonb.JSONField(default=dict, editable=False)), ('title', models.CharField(max_length=50, verbose_name='Title')), - ('description', models.TextField(verbose_name='Description')), + ('description', models.TextField(verbose_name='Description'), null=True, blank=True), ], options={ 'verbose_name': 'Absence reason', @@ -62,7 +62,7 @@ class Migration(migrations.Migration): ('extended_data', django.contrib.postgres.fields.jsonb.JSONField(default=dict, editable=False)), ('date', models.DateField(null=True, verbose_name='Date of exam')), ('title', models.CharField(max_length=50, verbose_name='Title')), - ('comment', models.TextField(verbose_name='Comment')), + ('comment', models.TextField(verbose_name='Comment'), null=True, blank=True), ], options={ 'verbose_name': 'Exam', @@ -77,7 +77,7 @@ class Migration(migrations.Migration): ('title', models.CharField(max_length=50, verbose_name='Title of the holidays')), ('date_start', models.DateField(null=True, verbose_name='Effective start date of holidays')), ('date_end', models.DateField(null=True, verbose_name='Effective end date of holidays')), - ('comments', models.TextField(verbose_name='Comments')), + ('comments', models.TextField(verbose_name='Comments'), null=True, blank=True), ], options={ 'verbose_name': 'Holiday', diff --git a/aleksis/apps/chronos/models.py b/aleksis/apps/chronos/models.py index 574889d8f3cb4dc5f2fa8cb7b0fb6149671d3438..3f57d6713e83603c448abea63b2c5acc43f7cba0 100644 --- a/aleksis/apps/chronos/models.py +++ b/aleksis/apps/chronos/models.py @@ -591,7 +591,7 @@ class TimetableWidget(DashboardWidget): class AbsenceReason(ExtensibleModel): title = models.CharField(verbose_name=_("Title"), max_length=50) - description = models.TextField(verbose_name=_("Description")) + description = models.TextField(verbose_name=_("Description"), blank=True, null=True) class Meta: verbose_name = _("Absence reason")