diff --git a/account/migrations/0007_alter_emailconfirmation_sent.py b/account/migrations/0007_alter_emailconfirmation_sent.py new file mode 100644 index 00000000..b2e0d627 --- /dev/null +++ b/account/migrations/0007_alter_emailconfirmation_sent.py @@ -0,0 +1,18 @@ +# Generated by Django 4.2.5 on 2023-09-12 21:58 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('account', '0006_alter_signupcode_max_uses'), + ] + + operations = [ + migrations.AlterField( + model_name='emailconfirmation', + name='sent', + field=models.DateTimeField(blank=True, null=True), + ), + ] diff --git a/account/models.py b/account/models.py index 8c263ccd..fea2e976 100644 --- a/account/models.py +++ b/account/models.py @@ -309,7 +309,7 @@ class EmailConfirmation(models.Model): email_address = models.ForeignKey(EmailAddress, on_delete=models.CASCADE) created = models.DateTimeField(default=timezone.now) - sent = models.DateTimeField(null=True) + sent = models.DateTimeField(blank=True, null=True) key = models.CharField(max_length=64, unique=True) objects = EmailConfirmationManager()