feat: add creation time to account confirmation challenge
parent
82d14a85a1
commit
c9456667f7
|
@ -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,
|
||||||
|
),
|
||||||
|
]
|
|
@ -30,6 +30,7 @@ class AccountConfirmChallenge(models.Model):
|
||||||
default=gen_secret,
|
default=gen_secret,
|
||||||
editable=False,
|
editable=False,
|
||||||
)
|
)
|
||||||
|
created_at = models.DateTimeField(auto_now_add=True, blank=True)
|
||||||
|
|
||||||
challenge_text = models.CharField(
|
challenge_text = models.CharField(
|
||||||
"Challenge text",
|
"Challenge text",
|
||||||
|
|
Loading…
Reference in New Issue