Initial commit

This commit is contained in:
2024-08-27 20:33:44 +02:00
commit 1f1832267d
14794 changed files with 1599592 additions and 0 deletions

View File

@@ -0,0 +1,55 @@
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,),
),
]

View File

@@ -0,0 +1,41 @@
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("wagtailusers", "0001_initial"),
]
operations = [
migrations.AlterField(
model_name="userprofile",
name="approved_notifications",
field=models.BooleanField(
default=True,
help_text="Receive notification when your page edit is approved",
verbose_name="Approved notifications",
),
preserve_default=True,
),
migrations.AlterField(
model_name="userprofile",
name="rejected_notifications",
field=models.BooleanField(
default=True,
help_text="Receive notification when your page edit is rejected",
verbose_name="Rejected notifications",
),
preserve_default=True,
),
migrations.AlterField(
model_name="userprofile",
name="submitted_notifications",
field=models.BooleanField(
default=True,
help_text="Receive notification when a page is submitted for moderation",
verbose_name="Submitted notifications",
),
preserve_default=True,
),
]

View File

@@ -0,0 +1,15 @@
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
("wagtailusers", "0002_add_verbose_name_on_userprofile"),
]
operations = [
migrations.AlterModelOptions(
name="userprofile",
options={"verbose_name": "User Profile"},
),
]

View File

@@ -0,0 +1,42 @@
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("wagtailusers", "0003_add_verbose_names"),
]
operations = [
migrations.AlterModelOptions(
name="userprofile",
options={"verbose_name": "user profile"},
),
migrations.AlterField(
model_name="userprofile",
name="approved_notifications",
field=models.BooleanField(
default=True,
help_text="Receive notification when your page edit is approved",
verbose_name="approved notifications",
),
),
migrations.AlterField(
model_name="userprofile",
name="rejected_notifications",
field=models.BooleanField(
default=True,
help_text="Receive notification when your page edit is rejected",
verbose_name="rejected notifications",
),
),
migrations.AlterField(
model_name="userprofile",
name="submitted_notifications",
field=models.BooleanField(
default=True,
help_text="Receive notification when a page is submitted for moderation",
verbose_name="submitted notifications",
),
),
]

View File

@@ -0,0 +1,23 @@
# Generated by Django 1.10.1 on 2016-09-28 23:49
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
("wagtailusers", "0004_capitalizeverbose"),
]
operations = [
migrations.AlterField(
model_name="userprofile",
name="user",
field=models.OneToOneField(
on_delete=django.db.models.deletion.CASCADE,
related_name="wagtail_userprofile",
to=settings.AUTH_USER_MODEL,
),
),
]

View File

@@ -0,0 +1,22 @@
# Generated by Django 1.10.5 on 2017-01-27 22:18
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("wagtailusers", "0005_make_related_name_wagtail_specific"),
]
operations = [
migrations.AddField(
model_name="userprofile",
name="preferred_language",
field=models.CharField(
default="",
help_text="Select language for the admin",
max_length=10,
verbose_name="preferred language",
),
),
]

View File

@@ -0,0 +1,23 @@
# Generated by Django 2.0.4 on 2018-04-07 01:21
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("wagtailusers", "0006_userprofile_prefered_language"),
]
operations = [
migrations.AddField(
model_name="userprofile",
name="current_time_zone",
field=models.CharField(
default="",
help_text="Select your current time zone",
max_length=40,
verbose_name="current time zone",
),
),
]

View File

@@ -0,0 +1,23 @@
# Generated by Django 2.0 on 2018-01-17 01:03
from django.db import migrations, models
import wagtail.users.models
class Migration(migrations.Migration):
dependencies = [
("wagtailusers", "0007_userprofile_current_time_zone"),
]
operations = [
migrations.AddField(
model_name="userprofile",
name="avatar",
field=models.ImageField(
blank=True,
upload_to=wagtail.users.models.upload_avatar_to,
verbose_name="profile picture",
),
),
]

View File

@@ -0,0 +1,20 @@
# Generated by Django 2.2.dev20181026000358 on 2018-10-27 09:42
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
("wagtailusers", "0008_userprofile_avatar"),
]
operations = [
migrations.AlterModelOptions(
name="userprofile",
options={
"verbose_name": "user profile",
"verbose_name_plural": "user profiles",
},
),
]

View File

@@ -0,0 +1,22 @@
# Generated by Django 3.1.7 on 2021-04-19 13:22
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("wagtailusers", "0009_userprofile_verbose_name_plural"),
]
operations = [
migrations.AddField(
model_name="userprofile",
name="updated_comments_notifications",
field=models.BooleanField(
default=True,
help_text="Receive notification when comments have been created, resolved, or deleted on a page that you have subscribed to receive comment notifications on",
verbose_name="updated comments notifications",
),
),
]

View File

@@ -0,0 +1,18 @@
# Generated by Django 4.0.5 on 2022-10-06 15:46
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("wagtailusers", "0010_userprofile_updated_comments_notifications"),
]
operations = [
migrations.AddField(
model_name="userprofile",
name="dismissibles",
field=models.JSONField(blank=True, default=dict),
),
]

View File

@@ -0,0 +1,27 @@
# Generated by Django 4.1.7 on 2023-04-19 08:38
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("wagtailusers", "0011_userprofile_dismissibles"),
]
operations = [
migrations.AddField(
model_name="userprofile",
name="theme",
field=models.CharField(
choices=[
("system", "System default"),
("light", "Light"),
("dark", "Dark"),
],
default="system",
max_length=40,
verbose_name="admin theme",
),
),
]

View File

@@ -0,0 +1,23 @@
# Generated by Django 4.2.9 on 2024-04-11 08:38
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("wagtailusers", "0012_userprofile_theme"),
]
operations = [
migrations.AddField(
model_name="userprofile",
name="density",
field=models.CharField(
choices=[("default", "Default"), ("snug", "Snug")],
default="default",
max_length=40,
verbose_name="density",
),
),
]