Add a kind of trashbin for registrations and participants
All checks were successful
buildbot/tox Build done.
All checks were successful
buildbot/tox Build done.
This commit is contained in:
39
dav_registration/migrations/0006_auto_20201203_1144.py
Normal file
39
dav_registration/migrations/0006_auto_20201203_1144.py
Normal file
@@ -0,0 +1,39 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by Django 1.11.29 on 2020-12-03 10:44
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations, models
|
||||
import django.db.models.deletion
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('dav_registration', '0005_auto_20201015_1738'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='RegistrationStatus',
|
||||
fields=[
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('updated_at', models.DateTimeField(auto_now=True)),
|
||||
('answered', models.BooleanField(default=False, verbose_name='Durch Tourleitung beantwortet')),
|
||||
('accepted', models.NullBooleanField(verbose_name='Zusage erteilt')),
|
||||
],
|
||||
options={
|
||||
'verbose_name': 'Anmeldungsstatus',
|
||||
'verbose_name_plural': 'Anmeldungsstati',
|
||||
'ordering': ['updated_at'],
|
||||
},
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='registration',
|
||||
name='answered',
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='registrationstatus',
|
||||
name='registration',
|
||||
field=models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, related_name='status', to='dav_registration.Registration'),
|
||||
),
|
||||
]
|
||||
Reference in New Issue
Block a user