Skip to content

Commit

Permalink
Fix PTC-W0906
Browse files Browse the repository at this point in the history
  • Loading branch information
blag committed Sep 12, 2023
1 parent 85ae28e commit 25abcc6
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
18 changes: 18 additions & 0 deletions account/migrations/0007_alter_emailconfirmation_sent.py
Original file line number Diff line number Diff line change
@@ -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),
),
]
2 changes: 1 addition & 1 deletion account/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 25abcc6

Please sign in to comment.