OpenSlides/server/openslides/topics/migrations/0001_initial.py

40 lines
1.1 KiB
Python
Raw Normal View History

# -*- coding: utf-8 -*-
# Generated by Django 1.10.1 on 2016-09-18 20:20
from __future__ import unicode_literals
from django.db import migrations, models
2016-09-12 11:05:34 +02:00
import openslides.utils.models
class Migration(migrations.Migration):
initial = True
2019-01-06 16:22:33 +01:00
dependencies = [("mediafiles", "0001_initial")]
operations = [
migrations.CreateModel(
2019-01-06 16:22:33 +01:00
name="Topic",
fields=[
2019-01-06 16:22:33 +01:00
(
"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)),
(
"attachments",
models.ManyToManyField(blank=True, to="mediafiles.Mediafile"),
),
],
2019-01-06 16:22:33 +01:00
options={"default_permissions": ()},
bases=(openslides.utils.models.RESTModelMixin, models.Model),
2019-01-06 16:22:33 +01:00
)
]