Files
old-saburly-wagtail-web/env/lib/python3.10/site-packages/wagtail/users/migrations/0001_initial.py
2024-08-27 20:33:44 +02:00

56 lines
1.7 KiB
Python

from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
operations = [
migrations.CreateModel(
name="UserProfile",
fields=[
(
"id",
models.AutoField(
serialize=False,
verbose_name="ID",
auto_created=True,
primary_key=True,
),
),
(
"submitted_notifications",
models.BooleanField(
default=True,
help_text="Receive notification when a page is submitted for moderation",
),
),
(
"approved_notifications",
models.BooleanField(
default=True,
help_text="Receive notification when your page edit is approved",
),
),
(
"rejected_notifications",
models.BooleanField(
default=True,
help_text="Receive notification when your page edit is rejected",
),
),
(
"user",
models.OneToOneField(
on_delete=models.CASCADE, to=settings.AUTH_USER_MODEL
),
),
],
options={},
bases=(models.Model,),
),
]