2016-09-10 18:49:38 +02:00
|
|
|
# -*- 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
|
2016-10-21 11:05:24 +02:00
|
|
|
|
2016-09-10 18:49:38 +02:00
|
|
|
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),
|
|
|
|
),
|
|
|
|
]
|