44 lines
1.2 KiB
Python
44 lines
1.2 KiB
Python
|
# Generated by Django 4.0.3 on 2022-06-10 16:09
|
||
|
|
||
|
import accounts.utils
|
||
|
from django.conf import settings
|
||
|
from django.db import migrations, models
|
||
|
import django.db.models.deletion
|
||
|
|
||
|
|
||
|
class Migration(migrations.Migration):
|
||
|
|
||
|
initial = True
|
||
|
|
||
|
dependencies = [
|
||
|
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
||
|
]
|
||
|
|
||
|
operations = [
|
||
|
migrations.CreateModel(
|
||
|
name="AccountConfirmChallenge",
|
||
|
fields=[
|
||
|
(
|
||
|
"challenge_text",
|
||
|
models.CharField(
|
||
|
blank=True,
|
||
|
default=accounts.utils.gen_secret,
|
||
|
editable=False,
|
||
|
max_length=32,
|
||
|
primary_key=True,
|
||
|
serialize=False,
|
||
|
unique=True,
|
||
|
verbose_name="Challenge text",
|
||
|
),
|
||
|
),
|
||
|
(
|
||
|
"owned_by",
|
||
|
models.ForeignKey(
|
||
|
on_delete=django.db.models.deletion.CASCADE,
|
||
|
to=settings.AUTH_USER_MODEL,
|
||
|
),
|
||
|
),
|
||
|
],
|
||
|
),
|
||
|
]
|