39 lines
1.3 KiB
Python
39 lines
1.3 KiB
Python
|
# Generated by Django 5.1 on 2024-08-11 18:57
|
||
|
|
||
|
import django.db.models.deletion
|
||
|
from django.db import migrations, models
|
||
|
|
||
|
|
||
|
class Migration(migrations.Migration):
|
||
|
|
||
|
initial = True
|
||
|
|
||
|
dependencies = [
|
||
|
]
|
||
|
|
||
|
operations = [
|
||
|
migrations.CreateModel(
|
||
|
name='Page',
|
||
|
fields=[
|
||
|
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||
|
('content', models.TextField(verbose_name='Содержимое')),
|
||
|
],
|
||
|
options={
|
||
|
'verbose_name': 'Страница',
|
||
|
'verbose_name_plural': 'Страницы',
|
||
|
},
|
||
|
),
|
||
|
migrations.CreateModel(
|
||
|
name='Site',
|
||
|
fields=[
|
||
|
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||
|
('domain', models.CharField(max_length=50, verbose_name='Домен')),
|
||
|
('base_page', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='cmsMain.page', verbose_name='Базовая страница')),
|
||
|
],
|
||
|
options={
|
||
|
'verbose_name': 'Сайт',
|
||
|
'verbose_name_plural': 'Сайты',
|
||
|
},
|
||
|
),
|
||
|
]
|