aboutsummaryrefslogtreecommitdiffstats
path: root/alphabetlearning/contrib/sites/migrations/0001_initial.py
diff options
context:
space:
mode:
Diffstat (limited to 'alphabetlearning/contrib/sites/migrations/0001_initial.py')
-rw-r--r--alphabetlearning/contrib/sites/migrations/0001_initial.py47
1 files changed, 18 insertions, 29 deletions
diff --git a/alphabetlearning/contrib/sites/migrations/0001_initial.py b/alphabetlearning/contrib/sites/migrations/0001_initial.py
index fd76afb..d6bb9e1 100644
--- a/alphabetlearning/contrib/sites/migrations/0001_initial.py
+++ b/alphabetlearning/contrib/sites/migrations/0001_initial.py
@@ -1,43 +1,32 @@
+# Generated by Django 5.1.4 on 2024-12-31 15:26
+
import django.contrib.sites.models
-from django.contrib.sites.models import _simple_domain_name_validator
-from django.db import migrations
-from django.db import models
+from django.db import migrations, models
class Migration(migrations.Migration):
- dependencies = []
+ initial = True
+
+ dependencies = [
+ ]
operations = [
migrations.CreateModel(
- name="Site",
+ name='Site',
fields=[
- (
- "id",
- models.AutoField(
- verbose_name="ID",
- serialize=False,
- auto_created=True,
- primary_key=True,
- ),
- ),
- (
- "domain",
- models.CharField(
- max_length=100,
- verbose_name="domain name",
- validators=[_simple_domain_name_validator],
- ),
- ),
- ("name", models.CharField(max_length=50, verbose_name="display name")),
+ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
+ ('domain', models.CharField(max_length=100, unique=True, validators=[django.contrib.sites.models._simple_domain_name_validator], verbose_name='domain name')),
+ ('name', models.CharField(max_length=50, verbose_name='display name')),
],
options={
- "ordering": ("domain",),
- "db_table": "django_site",
- "verbose_name": "site",
- "verbose_name_plural": "sites",
+ 'verbose_name': 'site',
+ 'verbose_name_plural': 'sites',
+ 'db_table': 'django_site',
+ 'ordering': ['domain'],
},
- bases=(models.Model,),
- managers=[("objects", django.contrib.sites.models.SiteManager())],
+ managers=[
+ ('objects', django.contrib.sites.models.SiteManager()),
+ ],
),
]