Added migrations
This commit is contained in:
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'),
|
||||
),
|
||||
]
|
Reference in New Issue
Block a user