Skip to content
Snippets Groups Projects
Commit 9f4eabf3 authored by Julian's avatar Julian Committed by permcu
Browse files

Drop field absent in ParticipationStatus

parent b3bea832
No related branches found
No related tags found
1 merge request!356Add dialog for creation of long-term absences
# Generated by Django 4.2.10 on 2024-04-30 11:14
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('kolego', '0003_refactor_absence'),
('alsijil', '0020_documentation_extramark_colour_bg_and_more'),
]
operations = [
migrations.RemoveField(
model_name='participationstatus',
name='absent',
),
migrations.AlterField(
model_name='participationstatus',
name='absence_reason',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, to='kolego.absencereason', verbose_name='Absence Reason'),
),
]
......@@ -593,9 +593,12 @@ class ParticipationStatus(CalendarEvent):
)
# Absence part
absent = models.BooleanField(verbose_name=_("Absent"))
absence_reason = models.ForeignKey(
AbsenceReason, verbose_name=_("Absence Reason"), on_delete=models.PROTECT
AbsenceReason,
verbose_name=_("Absence Reason"),
on_delete=models.PROTECT,
blank=True,
null=True,
)
base_absence = models.ForeignKey(
......
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