OpenSlides/openslides/motions/migrations/0005_motionchangerecommendation.py
2016-10-17 19:37:32 +02:00

38 lines
1.5 KiB
Python

# -*- coding: utf-8 -*-
# Generated by Django 1.10.1 on 2016-10-12 18:10
from __future__ import unicode_literals
import django.db.models.deletion
from django.conf import settings
from django.db import migrations, models
import openslides.utils.models
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('motions', '0004_auto_20160907_2343'),
]
operations = [
migrations.CreateModel(
name='MotionChangeRecommendation',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('status', models.PositiveIntegerField(default=0)),
('line_from', models.PositiveIntegerField()),
('line_to', models.PositiveIntegerField()),
('text', models.TextField(blank=True)),
('creation_time', models.DateTimeField(auto_now=True)),
('author', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to=settings.AUTH_USER_MODEL)),
('motion_version', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
related_name='change_recommendations', to='motions.MotionVersion')),
],
options={
'default_permissions': (),
},
bases=(openslides.utils.models.RESTModelMixin, models.Model),
),
]