Replaced deprecated NullBooleanField with BooleanField
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
# Generated by Django 3.2.13 on 2023-02-15 16:56
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('dav_registration', '0011_auto_20220607_1345'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='registrationstatus',
|
||||
name='accepted',
|
||||
field=models.BooleanField(blank=True, null=True, verbose_name='Zusage erteilt'),
|
||||
),
|
||||
]
|
||||
@@ -221,8 +221,7 @@ class RegistrationStatus(models.Model):
|
||||
registration = models.OneToOneField(Registration, on_delete=models.CASCADE, related_name='status')
|
||||
updated_at = models.DateTimeField(auto_now=True)
|
||||
answered = models.BooleanField(_('Durch Tourleitung beantwortet'), default=False)
|
||||
# TODO: NullBooleanField is marked deprecated
|
||||
accepted = models.NullBooleanField(_('Zusage erteilt'))
|
||||
accepted = models.BooleanField(_('Zusage erteilt'), null=True, blank=True)
|
||||
|
||||
class Meta:
|
||||
verbose_name = _('Anmeldungsstatus')
|
||||
|
||||
Reference in New Issue
Block a user