Fix wachtlijst visual, add not-null constraint
This commit is contained in:
parent
030fff8b06
commit
84f7c8b2b7
2 changed files with 20 additions and 1 deletions
19
events/migrations/0003_auto_20200804_1734.py
Normal file
19
events/migrations/0003_auto_20200804_1734.py
Normal 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'),
|
||||
),
|
||||
]
|
|
@ -5,7 +5,7 @@
|
|||
{% endif %}
|
||||
{% csrf_token %}
|
||||
<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 %}
|
||||
</p>
|
||||
|
||||
|
|
Loading…
Reference in a new issue