Fix wachtlijst visual, add not-null constraint

This commit is contained in:
Maxime Bloch 2020-08-04 17:36:37 +02:00
parent 030fff8b06
commit 84f7c8b2b7
2 changed files with 20 additions and 1 deletions

View file

@ -0,0 +1,19 @@
# Generated by Django 3.0.8 on 2020-08-04 15:34
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('events', '0002_auto_20200804_0004'),
]
operations = [
migrations.AlterField(
model_name='eventregistration',
name='time_slot',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='events.TimeSlot'),
),
]

View file

@ -5,7 +5,7 @@
{% endif %} {% endif %}
{% csrf_token %} {% csrf_token %}
<p>{{ timeslot.time_str }}, {{ timeslot.count_admitted }}/{{ event.capacity }} bevestigd{% if timeslot.count_interested %}, <p>{{ timeslot.time_str }}, {{ timeslot.count_admitted }}/{{ event.capacity }} bevestigd{% if timeslot.count_interested %},
{{ event.count_interested }} op wachtlijst {{ timeslot.count_interested }} op wachtlijst
{% endif %} {% endif %}
</p> </p>