diff --git a/helpdesk/teams/migrations/0005_alter_team_options_teamattendanceevent.py b/helpdesk/teams/migrations/0005_alter_team_options_teamattendanceevent.py index 428977b..8ac07c7 100644 --- a/helpdesk/teams/migrations/0005_alter_team_options_teamattendanceevent.py +++ b/helpdesk/teams/migrations/0005_alter_team_options_teamattendanceevent.py @@ -6,26 +6,39 @@ class Migration(migrations.Migration): - dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), - ('teams', '0004_add_team_comment'), + ("teams", "0004_add_team_comment"), ] operations = [ migrations.AlterModelOptions( - name='team', - options={'ordering': ['tla']}, + name="team", + options={"ordering": ["tla"]}, ), migrations.CreateModel( - name='TeamAttendanceEvent', + name="TeamAttendanceEvent", fields=[ - ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('type', models.TextField(choices=[('AR', 'Arrived'), ('LE', 'Left'), ('DE', 'Delayed'), ('DO', 'Dropped Out')], max_length=2)), - ('comment', models.TextField()), - ('created_at', models.DateTimeField(auto_now_add=True)), - ('team', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='team_attendance_events', related_query_name='team_attendance_events', to='teams.team')), - ('user', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to=settings.AUTH_USER_MODEL)), + ("id", models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name="ID")), + ( + "type", + models.TextField( + choices=[("AR", "Arrived"), ("LE", "Left"), ("DE", "Delayed"), ("DO", "Dropped Out")], + max_length=2, + ), + ), + ("comment", models.TextField()), + ("created_at", models.DateTimeField(auto_now_add=True)), + ( + "team", + models.ForeignKey( + on_delete=django.db.models.deletion.CASCADE, + related_name="team_attendance_events", + related_query_name="team_attendance_events", + to="teams.team", + ), + ), + ("user", models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to=settings.AUTH_USER_MODEL)), ], ), ]