Skip to content
Snippets Groups Projects
Verified Commit ab1f4a35 authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Force tardiness to be positive

Closes #141
parent 654a9758
No related branches found
No related tags found
1 merge request!146Resolve "Negative values for tardiness are not rejected"
Pipeline #6079 passed
# Generated by Django 3.1.6 on 2021-02-26 17:45
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('alsijil', '0010_events_extra_lessons'),
]
operations = [
migrations.AlterField(
model_name='personalnote',
name='late',
field=models.PositiveSmallIntegerField(default=0),
),
]
...@@ -193,7 +193,7 @@ class PersonalNote(RegisterObjectRelatedMixin, ExtensibleModel): ...@@ -193,7 +193,7 @@ class PersonalNote(RegisterObjectRelatedMixin, ExtensibleModel):
) )
absent = models.BooleanField(default=False) absent = models.BooleanField(default=False)
late = models.IntegerField(default=0) late = models.PositiveSmallIntegerField(default=0)
excused = models.BooleanField(default=False) excused = models.BooleanField(default=False)
excuse_type = models.ForeignKey( excuse_type = models.ForeignKey(
ExcuseType, on_delete=models.SET_NULL, null=True, blank=True, verbose_name=_("Excuse type"), ExcuseType, on_delete=models.SET_NULL, null=True, blank=True, verbose_name=_("Excuse type"),
......
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