Skip to content
Snippets Groups Projects
Verified Commit 9f4bc45c authored by Tom Teichler's avatar Tom Teichler :beers:
Browse files

Add new migration.

parent 9ce9c3cb
No related branches found
No related tags found
1 merge request!13Add function to cancel lessons. Closes #25.
# Generated by Django 2.2.5 on 2019-09-07 13:24
# Generated by Django 2.2.5 on 2019-09-07 14:19
from django.db import migrations, models
......@@ -12,7 +12,11 @@ class Migration(migrations.Migration):
operations = [
migrations.AddField(
model_name='lessonsubstitution',
name='canceled',
name='cancelled',
field=models.BooleanField(default=False),
),
migrations.AddConstraint(
model_name='lessonsubstitution',
constraint=models.CheckConstraint(check=models.Q(('cancelled', True), ('subject__isnull', False), _negated=True), name='either_substituted_or_cancelled'),
),
]
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