Skip to content
Permalink
96939992b0
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
41 lines (36 sloc) 1.97 KB
# -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-07-11 13:03
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
import eoa.models
class Migration(migrations.Migration):
dependencies = [
('eoa', '0005_auto_20170711_1306'),
]
operations = [
migrations.CreateModel(
name='Paragraph',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('title', models.CharField(blank=True, max_length=200)),
('order', models.PositiveIntegerField()),
('number', models.CharField(blank=True, max_length=20)),
('language', models.CharField(choices=[('de', 'German'), ('en', 'English'), ('it', 'Italian')], default='de', max_length=2)),
('doi', models.CharField(blank=True, max_length=200)),
('citation', models.CharField(blank=True, max_length=200)),
('pdf', models.FileField(blank=True, upload_to=eoa.models.filepath)),
('text', models.TextField()),
('authors', models.ManyToManyField(blank=True, default=None, to='eoa.Author')),
('chapter', models.ForeignKey(blank=True, on_delete=django.db.models.deletion.CASCADE, to='eoa.Chapter')),
('part', models.ForeignKey(blank=True, on_delete=django.db.models.deletion.CASCADE, to='eoa.Part')),
('publication', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='eoa.Publication')),
('section', models.ForeignKey(blank=True, on_delete=django.db.models.deletion.CASCADE, to='eoa.Section')),
('subsection', models.ForeignKey(blank=True, on_delete=django.db.models.deletion.CASCADE, to='eoa.Subsection')),
],
options={
'ordering': ('order',),
'abstract': False,
},
),
]