feat: add creation time to account confirmation challenge

wip-payments
Aravinth Manivannan 2022-06-11 16:09:47 +05:30
parent 82d14a85a1
commit c9456667f7
Signed by: realaravinth
GPG Key ID: AD9F0F08E855ED88
2 changed files with 23 additions and 0 deletions

View File

@ -0,0 +1,22 @@
# Generated by Django 4.0.3 on 2022-06-11 10:38
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
("accounts", "0004_accountconfirmchallenge_public_ref_and_more"),
]
operations = [
migrations.AddField(
model_name="accountconfirmchallenge",
name="created_at",
field=models.DateTimeField(
auto_now_add=True, default=django.utils.timezone.now
),
preserve_default=False,
),
]

View File

@ -30,6 +30,7 @@ class AccountConfirmChallenge(models.Model):
default=gen_secret,
editable=False,
)
created_at = models.DateTimeField(auto_now_add=True, blank=True)
challenge_text = models.CharField(
"Challenge text",