Added migrations
This commit is contained in:
parent
5e20a2058e
commit
0c3e3d3384
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,6 +1,5 @@
|
||||
/OACPL.iml
|
||||
/.idea/
|
||||
/*/migrations
|
||||
/OACPL/settings.py
|
||||
/db.sqlite3
|
||||
/static/admin
|
||||
|
41
case_law/migrations/0001_initial.py
Normal file
41
case_law/migrations/0001_initial.py
Normal file
@ -0,0 +1,41 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by Django 1.11.5 on 2018-01-05 23:54
|
||||
from __future__ import unicode_literals
|
||||
|
||||
import case_law.models
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
initial = True
|
||||
|
||||
dependencies = [
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='Case',
|
||||
fields=[
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('published', models.DateField()),
|
||||
('pdf', models.FileField(upload_to='secure', validators=[case_law.models.Case.validate_file_extension], verbose_name='PDF')),
|
||||
('synopsis', models.TextField()),
|
||||
],
|
||||
options={
|
||||
'permissions': (('view_pdf', 'Can view PDF'),),
|
||||
},
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='Heading',
|
||||
fields=[
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('name', models.CharField(max_length=100)),
|
||||
],
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='case',
|
||||
name='headings',
|
||||
field=models.ManyToManyField(to='case_law.Heading'),
|
||||
),
|
||||
]
|
21
case_law/migrations/0002_auto_20180114_1823.py
Normal file
21
case_law/migrations/0002_auto_20180114_1823.py
Normal file
@ -0,0 +1,21 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by Django 1.11.5 on 2018-01-14 23:23
|
||||
from __future__ import unicode_literals
|
||||
|
||||
import case_law.models
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('case_law', '0001_initial'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='case',
|
||||
name='pdf',
|
||||
field=models.FileField(upload_to='case_law', validators=[case_law.models.Case.validate_file_extension], verbose_name='PDF'),
|
||||
),
|
||||
]
|
43
charter_members/migrations/0001_initial.py
Normal file
43
charter_members/migrations/0001_initial.py
Normal file
@ -0,0 +1,43 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by Django 1.11.5 on 2018-01-05 23:54
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations, models
|
||||
import django.db.models.deletion
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
initial = True
|
||||
|
||||
dependencies = [
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='Attorney',
|
||||
fields=[
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('biography', models.TextField(blank=True, null=True)),
|
||||
('email', models.CharField(blank=True, max_length=255, null=True)),
|
||||
('front_page', models.BooleanField(default=False)),
|
||||
('image', models.ImageField(default='portraits/silhouette.png', upload_to='portraits')),
|
||||
('joined', models.DateField(blank=True, null=True)),
|
||||
('name', models.CharField(max_length=100)),
|
||||
('phone', models.CharField(blank=True, max_length=10, null=True)),
|
||||
('website', models.CharField(blank=True, max_length=255, null=True)),
|
||||
],
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='Position',
|
||||
fields=[
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('position_name', models.CharField(max_length=50)),
|
||||
],
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='attorney',
|
||||
name='position',
|
||||
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='charter_members.Position'),
|
||||
),
|
||||
]
|
21
charter_members/migrations/0002_auto_20180112_0153.py
Normal file
21
charter_members/migrations/0002_auto_20180112_0153.py
Normal file
@ -0,0 +1,21 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by Django 1.11.5 on 2018-01-12 06:53
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations
|
||||
import tinymce.models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('charter_members', '0001_initial'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='attorney',
|
||||
name='biography',
|
||||
field=tinymce.models.HTMLField(blank=True, null=True),
|
||||
),
|
||||
]
|
28
charter_members/migrations/0003_auto_20180114_1722.py
Normal file
28
charter_members/migrations/0003_auto_20180114_1722.py
Normal file
@ -0,0 +1,28 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by Django 1.11.5 on 2018-01-14 22:22
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations, models
|
||||
import django.db.models.deletion
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('charter_members', '0002_auto_20180112_0153'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='Chapter',
|
||||
fields=[
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('name', models.CharField(max_length=50)),
|
||||
],
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='attorney',
|
||||
name='chapter',
|
||||
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='charter_members.Chapter'),
|
||||
),
|
||||
]
|
38
expert_witnesses/migrations/0001_initial.py
Normal file
38
expert_witnesses/migrations/0001_initial.py
Normal file
@ -0,0 +1,38 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by Django 1.11.5 on 2018-01-05 23:54
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
initial = True
|
||||
|
||||
dependencies = [
|
||||
('case_law', '0001_initial'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='AreaOfExpertise',
|
||||
fields=[
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('field', models.CharField(max_length=255)),
|
||||
],
|
||||
options={
|
||||
'verbose_name': 'Area of Expertise',
|
||||
'verbose_name_plural': 'Areas of Expertise',
|
||||
},
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='Expert',
|
||||
fields=[
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('institute', models.CharField(blank=True, max_length=255, null=True)),
|
||||
('name', models.CharField(max_length=255)),
|
||||
('cases', models.ManyToManyField(blank=True, to='case_law.Case')),
|
||||
('expertise', models.ManyToManyField(to='expert_witnesses.AreaOfExpertise')),
|
||||
],
|
||||
),
|
||||
]
|
25
expert_witnesses/migrations/0002_auto_20180114_1823.py
Normal file
25
expert_witnesses/migrations/0002_auto_20180114_1823.py
Normal file
@ -0,0 +1,25 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by Django 1.11.5 on 2018-01-14 23:23
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations, models
|
||||
import expert_witnesses.models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('expert_witnesses', '0001_initial'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterModelOptions(
|
||||
name='expert',
|
||||
options={'permissions': (('view_cv', 'Can view CV'),)},
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='expert',
|
||||
name='CV',
|
||||
field=models.FileField(blank=True, null=True, upload_to='cv', validators=[expert_witnesses.models.Expert.validate_file_extension], verbose_name='CV'),
|
||||
),
|
||||
]
|
55
forum/migrations/0001_initial.py
Normal file
55
forum/migrations/0001_initial.py
Normal file
@ -0,0 +1,55 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by Django 1.11.5 on 2018-01-05 23:54
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.conf import settings
|
||||
from django.db import migrations, models
|
||||
import django.db.models.deletion
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
initial = True
|
||||
|
||||
dependencies = [
|
||||
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='Comment',
|
||||
fields=[
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('reply', models.TextField()),
|
||||
('created', models.DateTimeField(auto_now_add=True)),
|
||||
('creator', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
|
||||
],
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='Post',
|
||||
fields=[
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('title', models.CharField(max_length=255)),
|
||||
('question', models.TextField()),
|
||||
('created', models.DateTimeField(auto_now_add=True)),
|
||||
('creator', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
|
||||
],
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='Thread',
|
||||
fields=[
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('topic', models.CharField(max_length=255)),
|
||||
],
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='post',
|
||||
name='topic',
|
||||
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='forum.Thread'),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='comment',
|
||||
name='post',
|
||||
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='forum.Post'),
|
||||
),
|
||||
]
|
20
forum/migrations/0002_post_resolved.py
Normal file
20
forum/migrations/0002_post_resolved.py
Normal file
@ -0,0 +1,20 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by Django 1.11.5 on 2018-01-06 01:28
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('forum', '0001_initial'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='post',
|
||||
name='resolved',
|
||||
field=models.BooleanField(default=False),
|
||||
),
|
||||
]
|
26
forum/migrations/0003_auto_20180106_1204.py
Normal file
26
forum/migrations/0003_auto_20180106_1204.py
Normal file
@ -0,0 +1,26 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by Django 1.11.5 on 2018-01-06 17:04
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations
|
||||
import tinymce.models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('forum', '0002_post_resolved'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='comment',
|
||||
name='reply',
|
||||
field=tinymce.models.HTMLField(),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='post',
|
||||
name='question',
|
||||
field=tinymce.models.HTMLField(),
|
||||
),
|
||||
]
|
20
forum/migrations/0004_auto_20180114_1919.py
Normal file
20
forum/migrations/0004_auto_20180114_1919.py
Normal file
@ -0,0 +1,20 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by Django 1.11.5 on 2018-01-15 00:19
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('forum', '0003_auto_20180106_1204'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RenameField(
|
||||
model_name='post',
|
||||
old_name='topic',
|
||||
new_name='thread',
|
||||
),
|
||||
]
|
20
forum/migrations/0005_auto_20180114_1920.py
Normal file
20
forum/migrations/0005_auto_20180114_1920.py
Normal file
@ -0,0 +1,20 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by Django 1.11.5 on 2018-01-15 00:20
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('forum', '0004_auto_20180114_1919'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RenameField(
|
||||
model_name='thread',
|
||||
old_name='topic',
|
||||
new_name='name',
|
||||
),
|
||||
]
|
40
newsletters/migrations/0001_initial.py
Normal file
40
newsletters/migrations/0001_initial.py
Normal file
@ -0,0 +1,40 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by Django 1.11.5 on 2018-01-05 23:54
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.conf import settings
|
||||
from django.db import migrations, models
|
||||
import django.db.models.deletion
|
||||
import django.utils.timezone
|
||||
import tinymce.models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
initial = True
|
||||
|
||||
dependencies = [
|
||||
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='Newsletter',
|
||||
fields=[
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('body', tinymce.models.HTMLField(verbose_name='Body')),
|
||||
('created', models.DateTimeField(auto_now_add=True)),
|
||||
('publish', models.DateTimeField(default=django.utils.timezone.now)),
|
||||
('sent', models.BooleanField(default=False)),
|
||||
('subject', models.CharField(max_length=255)),
|
||||
('creator', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
|
||||
],
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='Subscriber',
|
||||
fields=[
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('email', models.EmailField(max_length=254, unique=True)),
|
||||
],
|
||||
),
|
||||
]
|
21
newsletters/migrations/0002_auto_20180105_2028.py
Normal file
21
newsletters/migrations/0002_auto_20180105_2028.py
Normal file
@ -0,0 +1,21 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by Django 1.11.5 on 2018-01-06 01:28
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations
|
||||
import tinymce.models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('newsletters', '0001_initial'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='newsletter',
|
||||
name='body',
|
||||
field=tinymce.models.HTMLField(),
|
||||
),
|
||||
]
|
22
newsletters/migrations/0003_subscriber_date.py
Normal file
22
newsletters/migrations/0003_subscriber_date.py
Normal file
@ -0,0 +1,22 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by Django 1.11.5 on 2018-01-15 00:25
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations, models
|
||||
import django.utils.timezone
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('newsletters', '0002_auto_20180105_2028'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='subscriber',
|
||||
name='date',
|
||||
field=models.DateField(auto_created=True, default=django.utils.timezone.now),
|
||||
preserve_default=False,
|
||||
),
|
||||
]
|
Loading…
Reference in New Issue
Block a user