Squished migrations files.
This commit is contained in:
parent
bab909713a
commit
de871f3f9c
@ -1,3 +1,7 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by Django 1.9.2 on 2016-03-02 01:23
|
||||
from __future__ import unicode_literals
|
||||
|
||||
import django.db.models.deletion
|
||||
from django.conf import settings
|
||||
from django.db import migrations, models
|
||||
@ -7,32 +11,35 @@ import openslides.utils.models
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
initial = True
|
||||
|
||||
dependencies = [
|
||||
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
||||
('contenttypes', '0002_remove_content_type_name'),
|
||||
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='Item',
|
||||
fields=[
|
||||
('id', models.AutoField(auto_created=True, serialize=False, primary_key=True, verbose_name='ID')),
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('item_number', models.CharField(blank=True, max_length=255)),
|
||||
('comment', models.TextField(null=True, blank=True)),
|
||||
('comment', models.TextField(blank=True, null=True)),
|
||||
('closed', models.BooleanField(default=False)),
|
||||
('type', models.IntegerField(choices=[(1, 'Agenda item'), (2, 'Hidden item')], default=1)),
|
||||
('duration', models.CharField(null=True, blank=True, max_length=5)),
|
||||
('weight', models.IntegerField(default=0)),
|
||||
('object_id', models.PositiveIntegerField(null=True, blank=True)),
|
||||
('type', models.IntegerField(choices=[(1, 'Agenda item'), (2, 'Hidden item')], default=2)),
|
||||
('duration', models.CharField(blank=True, max_length=5, null=True)),
|
||||
('weight', models.IntegerField(default=10000)),
|
||||
('object_id', models.PositiveIntegerField(blank=True, null=True)),
|
||||
('speaker_list_closed', models.BooleanField(default=False)),
|
||||
('content_type', models.ForeignKey(
|
||||
on_delete=django.db.models.deletion.SET_NULL, blank=True, null=True, to='contenttypes.ContentType')),
|
||||
blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='contenttypes.ContentType')),
|
||||
('parent', models.ForeignKey(
|
||||
related_name='children', blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='agenda.Item')),
|
||||
blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='children', to='agenda.Item')),
|
||||
],
|
||||
options={
|
||||
'permissions': (
|
||||
('can_see', 'Can see agenda'), ('can_manage', 'Can manage agenda'),
|
||||
('can_see', 'Can see agenda'),
|
||||
('can_manage', 'Can manage agenda'),
|
||||
('can_see_hidden_items', 'Can see hidden items and time scheduling of agenda')),
|
||||
'default_permissions': (),
|
||||
},
|
||||
@ -41,12 +48,12 @@ class Migration(migrations.Migration):
|
||||
migrations.CreateModel(
|
||||
name='Speaker',
|
||||
fields=[
|
||||
('id', models.AutoField(auto_created=True, serialize=False, primary_key=True, verbose_name='ID')),
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('begin_time', models.DateTimeField(null=True)),
|
||||
('end_time', models.DateTimeField(null=True)),
|
||||
('weight', models.IntegerField(null=True)),
|
||||
('item', models.ForeignKey(related_name='speakers', to='agenda.Item')),
|
||||
('user', models.ForeignKey(to=settings.AUTH_USER_MODEL)),
|
||||
('item', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='speakers', to='agenda.Item')),
|
||||
('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
|
||||
],
|
||||
options={
|
||||
'permissions': (('can_be_speaker', 'Can put oneself on the list of speakers'),),
|
||||
|
@ -1,19 +0,0 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('agenda', '0001_initial'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='item',
|
||||
name='type',
|
||||
field=models.IntegerField(default=2, choices=[(1, 'Agenda item'), (2, 'Hidden item')]),
|
||||
),
|
||||
]
|
@ -1,20 +0,0 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by Django 1.9.1 on 2016-01-27 21:36
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('agenda', '0002_auto_20160122_2318'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='item',
|
||||
name='weight',
|
||||
field=models.IntegerField(default=10000),
|
||||
),
|
||||
]
|
@ -1,3 +1,8 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by Django 1.9.2 on 2016-03-02 01:22
|
||||
from __future__ import unicode_literals
|
||||
|
||||
import django.db.models.deletion
|
||||
from django.conf import settings
|
||||
from django.db import migrations, models
|
||||
|
||||
@ -6,6 +11,8 @@ import openslides.utils.models
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
initial = True
|
||||
|
||||
dependencies = [
|
||||
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
||||
('core', '0001_initial'),
|
||||
@ -15,7 +22,7 @@ class Migration(migrations.Migration):
|
||||
migrations.CreateModel(
|
||||
name='Assignment',
|
||||
fields=[
|
||||
('id', models.AutoField(auto_created=True, serialize=False, primary_key=True, verbose_name='ID')),
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('title', models.CharField(max_length=100)),
|
||||
('description', models.TextField(blank=True)),
|
||||
('open_posts', models.PositiveSmallIntegerField()),
|
||||
@ -23,20 +30,22 @@ class Migration(migrations.Migration):
|
||||
('phase', models.IntegerField(choices=[(0, 'Searching for candidates'), (1, 'Voting'), (2, 'Finished')], default=0)),
|
||||
],
|
||||
options={
|
||||
'permissions': (
|
||||
('can_see', 'Can see elections'), ('can_nominate_other', 'Can nominate another participant'),
|
||||
('can_nominate_self', 'Can nominate oneself'), ('can_manage', 'Can manage elections')),
|
||||
'verbose_name': 'Election',
|
||||
'ordering': ('title',),
|
||||
'default_permissions': (),
|
||||
'permissions': (
|
||||
('can_see', 'Can see elections'),
|
||||
('can_nominate_other', 'Can nominate another participant'),
|
||||
('can_nominate_self', 'Can nominate oneself'),
|
||||
('can_manage', 'Can manage elections')),
|
||||
'ordering': ('title',),
|
||||
},
|
||||
bases=(openslides.utils.models.RESTModelMixin, models.Model),
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='AssignmentOption',
|
||||
fields=[
|
||||
('id', models.AutoField(auto_created=True, serialize=False, primary_key=True, verbose_name='ID')),
|
||||
('candidate', models.ForeignKey(to=settings.AUTH_USER_MODEL)),
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('candidate', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
|
||||
],
|
||||
options={
|
||||
'default_permissions': (),
|
||||
@ -46,14 +55,14 @@ class Migration(migrations.Migration):
|
||||
migrations.CreateModel(
|
||||
name='AssignmentPoll',
|
||||
fields=[
|
||||
('id', models.AutoField(auto_created=True, serialize=False, primary_key=True, verbose_name='ID')),
|
||||
('votesvalid', openslides.utils.models.MinMaxIntegerField(null=True, blank=True)),
|
||||
('votesinvalid', openslides.utils.models.MinMaxIntegerField(null=True, blank=True)),
|
||||
('votescast', openslides.utils.models.MinMaxIntegerField(null=True, blank=True)),
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('votesvalid', openslides.utils.models.MinMaxIntegerField(blank=True, null=True)),
|
||||
('votesinvalid', openslides.utils.models.MinMaxIntegerField(blank=True, null=True)),
|
||||
('votescast', openslides.utils.models.MinMaxIntegerField(blank=True, null=True)),
|
||||
('published', models.BooleanField(default=False)),
|
||||
('yesnoabstain', models.BooleanField(default=False)),
|
||||
('description', models.CharField(blank=True, max_length=79)),
|
||||
('assignment', models.ForeignKey(related_name='polls', to='assignments.Assignment')),
|
||||
('assignment', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='polls', to='assignments.Assignment')),
|
||||
],
|
||||
options={
|
||||
'default_permissions': (),
|
||||
@ -63,10 +72,11 @@ class Migration(migrations.Migration):
|
||||
migrations.CreateModel(
|
||||
name='AssignmentRelatedUser',
|
||||
fields=[
|
||||
('id', models.AutoField(auto_created=True, serialize=False, primary_key=True, verbose_name='ID')),
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('elected', models.BooleanField(default=False)),
|
||||
('assignment', models.ForeignKey(related_name='assignment_related_users', to='assignments.Assignment')),
|
||||
('user', models.ForeignKey(to=settings.AUTH_USER_MODEL)),
|
||||
('assignment', models.ForeignKey(
|
||||
on_delete=django.db.models.deletion.CASCADE, related_name='assignment_related_users', to='assignments.Assignment')),
|
||||
('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
|
||||
],
|
||||
options={
|
||||
'default_permissions': (),
|
||||
@ -76,10 +86,10 @@ class Migration(migrations.Migration):
|
||||
migrations.CreateModel(
|
||||
name='AssignmentVote',
|
||||
fields=[
|
||||
('id', models.AutoField(auto_created=True, serialize=False, primary_key=True, verbose_name='ID')),
|
||||
('weight', models.IntegerField(null=True, default=1)),
|
||||
('value', models.CharField(null=True, max_length=255)),
|
||||
('option', models.ForeignKey(related_name='votes', to='assignments.AssignmentOption')),
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('weight', models.IntegerField(default=1, null=True)),
|
||||
('value', models.CharField(max_length=255, null=True)),
|
||||
('option', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='votes', to='assignments.AssignmentOption')),
|
||||
],
|
||||
options={
|
||||
'default_permissions': (),
|
||||
@ -89,12 +99,12 @@ class Migration(migrations.Migration):
|
||||
migrations.AddField(
|
||||
model_name='assignmentoption',
|
||||
name='poll',
|
||||
field=models.ForeignKey(related_name='options', to='assignments.AssignmentPoll'),
|
||||
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='options', to='assignments.AssignmentPoll'),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='assignment',
|
||||
name='related_users',
|
||||
field=models.ManyToManyField(to=settings.AUTH_USER_MODEL, through='assignments.AssignmentRelatedUser'),
|
||||
field=models.ManyToManyField(through='assignments.AssignmentRelatedUser', to=settings.AUTH_USER_MODEL),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='assignment',
|
||||
|
@ -1,5 +1,10 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by Django 1.9.2 on 2016-03-02 01:22
|
||||
from __future__ import unicode_literals
|
||||
|
||||
import uuid
|
||||
|
||||
import django.db.models.deletion
|
||||
import jsonfield.fields
|
||||
from django.conf import settings
|
||||
from django.db import migrations, models
|
||||
@ -23,7 +28,10 @@ def add_default_projector(apps, schema_editor):
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
initial = True
|
||||
|
||||
dependencies = [
|
||||
('mediafiles', '0001_initial'),
|
||||
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
||||
]
|
||||
|
||||
@ -31,36 +39,37 @@ class Migration(migrations.Migration):
|
||||
migrations.CreateModel(
|
||||
name='ChatMessage',
|
||||
fields=[
|
||||
('id', models.AutoField(auto_created=True, serialize=False, primary_key=True, verbose_name='ID')),
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('message', models.TextField()),
|
||||
('timestamp', models.DateTimeField(auto_now_add=True)),
|
||||
('user', models.ForeignKey(to=settings.AUTH_USER_MODEL)),
|
||||
('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
|
||||
],
|
||||
options={
|
||||
'permissions': (('can_use_chat', 'Can use the chat'),),
|
||||
'default_permissions': (),
|
||||
'permissions': (('can_use_chat', 'Can use the chat'),),
|
||||
},
|
||||
bases=(openslides.utils.models.RESTModelMixin, models.Model),
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='ConfigStore',
|
||||
fields=[
|
||||
('id', models.AutoField(auto_created=True, serialize=False, primary_key=True, verbose_name='ID')),
|
||||
('key', models.CharField(db_index=True, unique=True, max_length=255)),
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('key', models.CharField(db_index=True, max_length=255, unique=True)),
|
||||
('value', jsonfield.fields.JSONField()),
|
||||
],
|
||||
options={
|
||||
'permissions': (('can_manage_config', 'Can manage configuration'),),
|
||||
'default_permissions': (),
|
||||
'permissions': (('can_manage_config', 'Can manage configuration'),),
|
||||
},
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='CustomSlide',
|
||||
fields=[
|
||||
('id', models.AutoField(auto_created=True, serialize=False, primary_key=True, verbose_name='ID')),
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('title', models.CharField(max_length=256)),
|
||||
('text', models.TextField(blank=True)),
|
||||
('weight', models.IntegerField(default=0)),
|
||||
('attachments', models.ManyToManyField(blank=True, to='mediafiles.Mediafile')),
|
||||
],
|
||||
options={
|
||||
'default_permissions': (),
|
||||
@ -71,28 +80,29 @@ class Migration(migrations.Migration):
|
||||
migrations.CreateModel(
|
||||
name='Projector',
|
||||
fields=[
|
||||
('id', models.AutoField(auto_created=True, serialize=False, primary_key=True, verbose_name='ID')),
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('config', jsonfield.fields.JSONField()),
|
||||
('scale', models.IntegerField(default=0)),
|
||||
('scroll', models.IntegerField(default=0)),
|
||||
],
|
||||
options={
|
||||
'permissions': (
|
||||
('can_see_projector', 'Can see the projector'), ('can_manage_projector', 'Can manage the projector'),
|
||||
('can_see_dashboard', 'Can see the dashboard')),
|
||||
'default_permissions': (),
|
||||
'permissions': (
|
||||
('can_see_projector', 'Can see the projector'),
|
||||
('can_manage_projector', 'Can manage the projector'),
|
||||
('can_see_frontpage', 'Can see the front page')),
|
||||
},
|
||||
bases=(openslides.utils.models.RESTModelMixin, models.Model),
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='Tag',
|
||||
fields=[
|
||||
('id', models.AutoField(auto_created=True, serialize=False, primary_key=True, verbose_name='ID')),
|
||||
('name', models.CharField(unique=True, max_length=255)),
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('name', models.CharField(max_length=255, unique=True)),
|
||||
],
|
||||
options={
|
||||
'permissions': (('can_manage_tags', 'Can manage tags'),),
|
||||
'default_permissions': (),
|
||||
'permissions': (('can_manage_tags', 'Can manage tags'),),
|
||||
'ordering': ('name',),
|
||||
},
|
||||
bases=(openslides.utils.models.RESTModelMixin, models.Model),
|
||||
|
@ -1,20 +0,0 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('mediafiles', '0002_auto_20160110_0103'),
|
||||
('core', '0001_initial'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='customslide',
|
||||
name='attachments',
|
||||
field=models.ManyToManyField(to='mediafiles.Mediafile', blank=True),
|
||||
),
|
||||
]
|
@ -1,21 +0,0 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('core', '0002_customslide_attachments'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterModelOptions(
|
||||
name='projector',
|
||||
options={'default_permissions': (), 'permissions': (
|
||||
('can_see_projector', 'Can see the projector'),
|
||||
('can_manage_projector', 'Can manage the projector'),
|
||||
('can_see_frontpage', 'Can see the front page'))},
|
||||
),
|
||||
]
|
@ -1,3 +1,7 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by Django 1.9.2 on 2016-03-02 01:22
|
||||
from __future__ import unicode_literals
|
||||
|
||||
import django.db.models.deletion
|
||||
from django.conf import settings
|
||||
from django.db import migrations, models
|
||||
@ -7,6 +11,8 @@ import openslides.utils.models
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
initial = True
|
||||
|
||||
dependencies = [
|
||||
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
||||
]
|
||||
@ -15,15 +21,14 @@ class Migration(migrations.Migration):
|
||||
migrations.CreateModel(
|
||||
name='Mediafile',
|
||||
fields=[
|
||||
('id', models.AutoField(auto_created=True, serialize=False, primary_key=True, verbose_name='ID')),
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('mediafile', models.FileField(upload_to='file')),
|
||||
('title', models.CharField(blank=True, unique=True, max_length=255)),
|
||||
('title', models.CharField(max_length=255, unique=True)),
|
||||
('timestamp', models.DateTimeField(auto_now_add=True)),
|
||||
('uploader', models.ForeignKey(on_delete=django.db.models.deletion.SET_NULL, blank=True, null=True, to=settings.AUTH_USER_MODEL)),
|
||||
('uploader', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to=settings.AUTH_USER_MODEL)),
|
||||
],
|
||||
options={
|
||||
'permissions': (
|
||||
('can_see', 'Can see the list of files'), ('can_upload', 'Can upload files'), ('can_manage', 'Can manage files')),
|
||||
'permissions': (('can_see', 'Can see the list of files'), ('can_upload', 'Can upload files'), ('can_manage', 'Can manage files')),
|
||||
'default_permissions': (),
|
||||
'ordering': ['title'],
|
||||
},
|
||||
|
@ -1,19 +0,0 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('mediafiles', '0001_initial'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='mediafile',
|
||||
name='title',
|
||||
field=models.CharField(max_length=255, unique=True),
|
||||
),
|
||||
]
|
@ -1,3 +1,7 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by Django 1.9.2 on 2016-03-02 01:22
|
||||
from __future__ import unicode_literals
|
||||
|
||||
import django.db.models.deletion
|
||||
import jsonfield.fields
|
||||
from django.conf import settings
|
||||
@ -8,9 +12,11 @@ import openslides.utils.models
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
initial = True
|
||||
|
||||
dependencies = [
|
||||
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
||||
('mediafiles', '0001_initial'),
|
||||
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
||||
('core', '0001_initial'),
|
||||
]
|
||||
|
||||
@ -18,28 +24,30 @@ class Migration(migrations.Migration):
|
||||
migrations.CreateModel(
|
||||
name='Category',
|
||||
fields=[
|
||||
('id', models.AutoField(auto_created=True, serialize=False, primary_key=True, verbose_name='ID')),
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('name', models.CharField(max_length=255)),
|
||||
('prefix', models.CharField(blank=True, max_length=32)),
|
||||
],
|
||||
options={
|
||||
'default_permissions': (),
|
||||
'ordering': ['prefix'],
|
||||
'default_permissions': (),
|
||||
},
|
||||
bases=(openslides.utils.models.RESTModelMixin, models.Model),
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='Motion',
|
||||
fields=[
|
||||
('id', models.AutoField(auto_created=True, serialize=False, primary_key=True, verbose_name='ID')),
|
||||
('identifier', models.CharField(null=True, unique=True, blank=True, max_length=255)),
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('identifier', models.CharField(blank=True, max_length=255, null=True, unique=True)),
|
||||
('identifier_number', models.IntegerField(null=True)),
|
||||
],
|
||||
options={
|
||||
'permissions': (
|
||||
('can_see', 'Can see motions'), ('can_create', 'Can create motions'),
|
||||
('can_support', 'Can support motions'), ('can_manage', 'Can manage motions')),
|
||||
'verbose_name': 'Motion',
|
||||
'permissions': (
|
||||
('can_see', 'Can see motions'),
|
||||
('can_create', 'Can create motions'),
|
||||
('can_support', 'Can support motions'),
|
||||
('can_manage', 'Can manage motions')),
|
||||
'ordering': ('identifier',),
|
||||
'default_permissions': (),
|
||||
},
|
||||
@ -48,22 +56,22 @@ class Migration(migrations.Migration):
|
||||
migrations.CreateModel(
|
||||
name='MotionLog',
|
||||
fields=[
|
||||
('id', models.AutoField(auto_created=True, serialize=False, primary_key=True, verbose_name='ID')),
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('message_list', jsonfield.fields.JSONField()),
|
||||
('time', models.DateTimeField(auto_now=True)),
|
||||
('motion', models.ForeignKey(related_name='log_messages', to='motions.Motion')),
|
||||
('person', models.ForeignKey(on_delete=django.db.models.deletion.SET_NULL, null=True, to=settings.AUTH_USER_MODEL)),
|
||||
('motion', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='log_messages', to='motions.Motion')),
|
||||
('person', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to=settings.AUTH_USER_MODEL)),
|
||||
],
|
||||
options={
|
||||
'default_permissions': (),
|
||||
'ordering': ['-time'],
|
||||
'default_permissions': (),
|
||||
},
|
||||
bases=(openslides.utils.models.RESTModelMixin, models.Model),
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='MotionOption',
|
||||
fields=[
|
||||
('id', models.AutoField(auto_created=True, serialize=False, primary_key=True, verbose_name='ID')),
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
],
|
||||
options={
|
||||
'default_permissions': (),
|
||||
@ -73,11 +81,11 @@ class Migration(migrations.Migration):
|
||||
migrations.CreateModel(
|
||||
name='MotionPoll',
|
||||
fields=[
|
||||
('id', models.AutoField(auto_created=True, serialize=False, primary_key=True, verbose_name='ID')),
|
||||
('votesvalid', openslides.utils.models.MinMaxIntegerField(null=True, blank=True)),
|
||||
('votesinvalid', openslides.utils.models.MinMaxIntegerField(null=True, blank=True)),
|
||||
('votescast', openslides.utils.models.MinMaxIntegerField(null=True, blank=True)),
|
||||
('motion', models.ForeignKey(related_name='polls', to='motions.Motion')),
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('votesvalid', openslides.utils.models.MinMaxIntegerField(blank=True, null=True)),
|
||||
('votesinvalid', openslides.utils.models.MinMaxIntegerField(blank=True, null=True)),
|
||||
('votescast', openslides.utils.models.MinMaxIntegerField(blank=True, null=True)),
|
||||
('motion', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='polls', to='motions.Motion')),
|
||||
],
|
||||
options={
|
||||
'default_permissions': (),
|
||||
@ -87,13 +95,13 @@ class Migration(migrations.Migration):
|
||||
migrations.CreateModel(
|
||||
name='MotionVersion',
|
||||
fields=[
|
||||
('id', models.AutoField(auto_created=True, serialize=False, primary_key=True, verbose_name='ID')),
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('version_number', models.PositiveIntegerField(default=1)),
|
||||
('title', models.CharField(max_length=255)),
|
||||
('text', models.TextField()),
|
||||
('reason', models.TextField(null=True, blank=True)),
|
||||
('reason', models.TextField(blank=True, null=True)),
|
||||
('creation_time', models.DateTimeField(auto_now=True)),
|
||||
('motion', models.ForeignKey(related_name='versions', to='motions.Motion')),
|
||||
('motion', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='versions', to='motions.Motion')),
|
||||
],
|
||||
options={
|
||||
'default_permissions': (),
|
||||
@ -103,10 +111,10 @@ class Migration(migrations.Migration):
|
||||
migrations.CreateModel(
|
||||
name='MotionVote',
|
||||
fields=[
|
||||
('id', models.AutoField(auto_created=True, serialize=False, primary_key=True, verbose_name='ID')),
|
||||
('weight', models.IntegerField(null=True, default=1)),
|
||||
('value', models.CharField(null=True, max_length=255)),
|
||||
('option', models.ForeignKey(to='motions.MotionOption')),
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('weight', models.IntegerField(default=1, null=True)),
|
||||
('value', models.CharField(max_length=255, null=True)),
|
||||
('option', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='motions.MotionOption')),
|
||||
],
|
||||
options={
|
||||
'default_permissions': (),
|
||||
@ -116,7 +124,7 @@ class Migration(migrations.Migration):
|
||||
migrations.CreateModel(
|
||||
name='State',
|
||||
fields=[
|
||||
('id', models.AutoField(auto_created=True, serialize=False, primary_key=True, verbose_name='ID')),
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('name', models.CharField(max_length=255)),
|
||||
('action_word', models.CharField(max_length=255)),
|
||||
('css_class', models.CharField(default='primary', max_length=255)),
|
||||
@ -137,10 +145,10 @@ class Migration(migrations.Migration):
|
||||
migrations.CreateModel(
|
||||
name='Workflow',
|
||||
fields=[
|
||||
('id', models.AutoField(auto_created=True, serialize=False, primary_key=True, verbose_name='ID')),
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('name', models.CharField(max_length=255)),
|
||||
('first_state', models.OneToOneField(
|
||||
related_name='+', null=True, on_delete=django.db.models.deletion.SET_NULL, to='motions.State')),
|
||||
null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='motions.State')),
|
||||
],
|
||||
options={
|
||||
'default_permissions': (),
|
||||
@ -150,18 +158,18 @@ class Migration(migrations.Migration):
|
||||
migrations.AddField(
|
||||
model_name='state',
|
||||
name='workflow',
|
||||
field=models.ForeignKey(related_name='states', to='motions.Workflow'),
|
||||
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='states', to='motions.Workflow'),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='motionoption',
|
||||
name='poll',
|
||||
field=models.ForeignKey(to='motions.MotionPoll'),
|
||||
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='motions.MotionPoll'),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='motion',
|
||||
name='active_version',
|
||||
field=models.ForeignKey(
|
||||
related_name='active_version', null=True, on_delete=django.db.models.deletion.SET_NULL, to='motions.MotionVersion'),
|
||||
null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='active_version', to='motions.MotionVersion'),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='motion',
|
||||
@ -171,28 +179,28 @@ class Migration(migrations.Migration):
|
||||
migrations.AddField(
|
||||
model_name='motion',
|
||||
name='category',
|
||||
field=models.ForeignKey(on_delete=django.db.models.deletion.SET_NULL, blank=True, null=True, to='motions.Category'),
|
||||
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='motions.Category'),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='motion',
|
||||
name='parent',
|
||||
field=models.ForeignKey(
|
||||
related_name='amendments', blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='motions.Motion'),
|
||||
blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='amendments', to='motions.Motion'),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='motion',
|
||||
name='state',
|
||||
field=models.ForeignKey(on_delete=django.db.models.deletion.SET_NULL, null=True, to='motions.State'),
|
||||
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to='motions.State'),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='motion',
|
||||
name='submitters',
|
||||
field=models.ManyToManyField(related_name='motion_submitters', blank=True, to=settings.AUTH_USER_MODEL),
|
||||
field=models.ManyToManyField(blank=True, related_name='motion_submitters', to=settings.AUTH_USER_MODEL),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='motion',
|
||||
name='supporters',
|
||||
field=models.ManyToManyField(related_name='motion_supporters', blank=True, to=settings.AUTH_USER_MODEL),
|
||||
field=models.ManyToManyField(blank=True, related_name='motion_supporters', to=settings.AUTH_USER_MODEL),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='motion',
|
||||
|
@ -1,3 +1,7 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by Django 1.9.2 on 2016-03-02 01:22
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
import openslides.utils.models
|
||||
@ -5,44 +9,57 @@ import openslides.utils.models
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
initial = True
|
||||
|
||||
dependencies = [
|
||||
('auth', '0006_require_contenttypes_0002'),
|
||||
# The next line is not a dependency because we also want to support Django 1.8.
|
||||
# ('auth', '0007_alter_validators_add_error_messages'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='User',
|
||||
fields=[
|
||||
('id', models.AutoField(verbose_name='ID', primary_key=True, serialize=False, auto_created=True)),
|
||||
('password', models.CharField(verbose_name='password', max_length=128)),
|
||||
('last_login', models.DateTimeField(verbose_name='last login', null=True, blank=True)),
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('password', models.CharField(max_length=128, verbose_name='password')),
|
||||
('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')),
|
||||
('is_superuser', models.BooleanField(
|
||||
default=False,
|
||||
help_text='Designates that this user has all permissions without explicitly assigning them.',
|
||||
verbose_name='superuser status', default=False)),
|
||||
('username', models.CharField(max_length=255, blank=True, unique=True)),
|
||||
('first_name', models.CharField(max_length=255, blank=True)),
|
||||
('last_name', models.CharField(max_length=255, blank=True)),
|
||||
('structure_level', models.CharField(blank=True, max_length=255, default='')),
|
||||
('title', models.CharField(blank=True, max_length=50, default='')),
|
||||
verbose_name='superuser status')),
|
||||
('username', models.CharField(blank=True, max_length=255, unique=True)),
|
||||
('first_name', models.CharField(blank=True, max_length=255)),
|
||||
('last_name', models.CharField(blank=True, max_length=255)),
|
||||
('structure_level', models.CharField(blank=True, default='', max_length=255)),
|
||||
('title', models.CharField(blank=True, default='', max_length=50)),
|
||||
('about_me', models.TextField(blank=True, default='')),
|
||||
('comment', models.TextField(blank=True, default='')),
|
||||
('default_password', models.CharField(blank=True, max_length=100, default='')),
|
||||
('default_password', models.CharField(blank=True, default='', max_length=100)),
|
||||
('is_active', models.BooleanField(default=True)),
|
||||
('is_present', models.BooleanField(default=False)),
|
||||
('groups', models.ManyToManyField(
|
||||
related_name='user_set',
|
||||
blank=True,
|
||||
help_text='The groups this user belongs to. A user will get all permissions granted to each of their groups.',
|
||||
verbose_name='groups', blank=True, to='auth.Group', related_query_name='user')),
|
||||
related_name='user_set',
|
||||
related_query_name='user',
|
||||
to='auth.Group',
|
||||
verbose_name='groups')),
|
||||
('user_permissions', models.ManyToManyField(
|
||||
related_name='user_set', help_text='Specific permissions for this user.', verbose_name='user permissions',
|
||||
blank=True, to='auth.Permission', related_query_name='user')),
|
||||
blank=True,
|
||||
help_text='Specific permissions for this user.',
|
||||
related_name='user_set',
|
||||
related_query_name='user',
|
||||
to='auth.Permission',
|
||||
verbose_name='user permissions')),
|
||||
],
|
||||
options={
|
||||
'permissions': (
|
||||
('can_see_name', 'Can see names of users'), ('can_see_extra_data', 'Can see extra data of users'),
|
||||
('can_manage', 'Can manage users')),
|
||||
'ordering': ('last_name', 'first_name', 'username'),
|
||||
'default_permissions': (),
|
||||
'permissions': (
|
||||
('can_see_name', 'Can see names of users'),
|
||||
('can_see_extra_data', 'Can see extra data of users'),
|
||||
('can_manage', 'Can manage users')),
|
||||
},
|
||||
bases=(openslides.utils.models.RESTModelMixin, models.Model),
|
||||
),
|
||||
|
Loading…
Reference in New Issue
Block a user