mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-09 19:40:19 +00:00
Add very basic and not safe pages
This commit is contained in:
19
core/migrations/0004_page_children.py
Normal file
19
core/migrations/0004_page_children.py
Normal file
@ -0,0 +1,19 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('core', '0003_auto_20151119_1635'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='page',
|
||||
name='children',
|
||||
field=models.ForeignKey(to='core.Page', related_name='parent', null=True),
|
||||
),
|
||||
]
|
19
core/migrations/0005_page_title.py
Normal file
19
core/migrations/0005_page_title.py
Normal file
@ -0,0 +1,19 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('core', '0004_page_children'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='page',
|
||||
name='title',
|
||||
field=models.CharField(blank=True, max_length=255, verbose_name='page title'),
|
||||
),
|
||||
]
|
23
core/migrations/0006_auto_20151120_0958.py
Normal file
23
core/migrations/0006_auto_20151120_0958.py
Normal file
@ -0,0 +1,23 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('core', '0005_page_title'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RemoveField(
|
||||
model_name='page',
|
||||
name='id',
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='page',
|
||||
name='full_name',
|
||||
field=models.CharField(primary_key=True, max_length=255, serialize=False, verbose_name='full name'),
|
||||
),
|
||||
]
|
24
core/migrations/0007_auto_20151120_1347.py
Normal file
24
core/migrations/0007_auto_20151120_1347.py
Normal file
@ -0,0 +1,24 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('core', '0006_auto_20151120_0958'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RemoveField(
|
||||
model_name='page',
|
||||
name='full_name',
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='page',
|
||||
name='id',
|
||||
field=models.AutoField(default=0, auto_created=True, verbose_name='ID', primary_key=True, serialize=False),
|
||||
preserve_default=False,
|
||||
),
|
||||
]
|
Reference in New Issue
Block a user