Skip to content
Snippets Groups Projects
Verified Commit d9e4b432 authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

Fix verbose_name_plural

parent 4778dcc1
No related branches found
No related tags found
1 merge request!39Resolve "Models for advanced features from SchoolApps (imported from Untis)"
......@@ -24,6 +24,7 @@ class Migration(migrations.Migration):
],
options={
'verbose_name': 'Absence',
'verbose_name_plural': 'Absences',
'ordering': ['date_start'],
},
),
......@@ -37,6 +38,7 @@ class Migration(migrations.Migration):
],
options={
'verbose_name': 'Absence reason',
'verbose_name_plural': 'Absence reasons',
},
),
migrations.CreateModel(
......@@ -50,6 +52,7 @@ class Migration(migrations.Migration):
],
options={
'verbose_name': 'Events',
'verbose_name_plural': 'Events',
'ordering': ['date_start'],
},
),
......@@ -64,6 +67,7 @@ class Migration(migrations.Migration):
],
options={
'verbose_name': 'Exam',
'verbose_name_plural': 'Exams',
'ordering': ['date'],
},
),
......@@ -79,6 +83,7 @@ class Migration(migrations.Migration):
],
options={
'verbose_name': 'Holiday',
'verbose_name_plural': 'Holidays',
'ordering': ['date_start'],
},
),
......@@ -94,6 +99,7 @@ class Migration(migrations.Migration):
],
options={
'verbose_name': 'Supervision areas',
'verbose_name_plural': 'Supervision areas',
'ordering': ['name'],
},
),
......
......@@ -599,6 +599,7 @@ class AbsenceReason(ExtensibleModel):
class Meta:
verbose_name = _("Absence reason")
verbose_name_plural = _("Absence reasons")
class Absence(ExtensibleModel):
reason = models.ForeignKey("AbsenceReason", on_delete=models.CASCADE, related_name="absences")
......@@ -614,6 +615,7 @@ class Absence(ExtensibleModel):
ordering = ["date_start"]
indexes = [models.Index(fields=["date_start", "date_end"])]
verbose_name = _("Absence")
verbose_name_plural = _("Absences")
class Exam(ExtensibleModel):
......@@ -630,6 +632,7 @@ class Exam(ExtensibleModel):
ordering = ["date"]
indexes = [models.Index(fields=["date"])]
verbose_name = _("Exam")
verbose_name_plural = _("Exams")
class Holiday(ExtensibleModel):
......@@ -642,6 +645,7 @@ class Holiday(ExtensibleModel):
ordering = ["date_start"]
indexes = [models.Index(fields=["date_start", "date_end"])]
verbose_name = _("Holiday")
verbose_name_plural = _("Holidays")
class SupervisionArea(ExtensibleModel):
......@@ -708,4 +712,4 @@ class Event(ExtensibleModel):
ordering = ["date_start"]
indexes = [models.Index(fields=["period_from", "period_to", "date_start", "date_end"])]
verbose_name = _("Event")
verbose_name = _("Events")
verbose_name_plural = _("Events")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment