Use audience->thema in legimi too.
[redakcja.git] / src / toolbar / migrations / 0001_initial.py
1 # This file is part of FNP-Redakcja, licensed under GNU Affero GPLv3 or later.
2 # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
3 #
4 from django.db import models, migrations
5
6
7 class Migration(migrations.Migration):
8
9     dependencies = [
10     ]
11
12     operations = [
13         migrations.CreateModel(
14             name='Button',
15             fields=[
16                 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
17                 ('label', models.CharField(max_length=32)),
18                 ('slug', models.SlugField(unique=True)),
19                 ('params', models.TextField(default=b'[]')),
20                 ('link', models.CharField(default=b'', max_length=256, blank=True)),
21                 ('accesskey', models.CharField(max_length=1, blank=True)),
22                 ('tooltip', models.CharField(max_length=120, blank=True)),
23             ],
24             options={
25                 'ordering': ('slug',),
26                 'verbose_name': 'button',
27                 'verbose_name_plural': 'buttons',
28             },
29             bases=(models.Model,),
30         ),
31         migrations.CreateModel(
32             name='ButtonGroup',
33             fields=[
34                 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
35                 ('name', models.CharField(max_length=32)),
36                 ('slug', models.SlugField()),
37                 ('position', models.IntegerField(default=0)),
38             ],
39             options={
40                 'ordering': ('position', 'name'),
41                 'verbose_name': 'button group',
42                 'verbose_name_plural': 'button groups',
43             },
44             bases=(models.Model,),
45         ),
46         migrations.CreateModel(
47             name='Scriptlet',
48             fields=[
49                 ('name', models.CharField(max_length=64, serialize=False, primary_key=True)),
50                 ('code', models.TextField()),
51             ],
52             options={
53             },
54             bases=(models.Model,),
55         ),
56         migrations.AddField(
57             model_name='button',
58             name='group',
59             field=models.ManyToManyField(to='toolbar.ButtonGroup'),
60             preserve_default=True,
61         ),
62         migrations.AddField(
63             model_name='button',
64             name='scriptlet',
65             field=models.ForeignKey(blank=True, to='toolbar.Scriptlet', null=True, on_delete=models.CASCADE),
66             preserve_default=True,
67         ),
68     ]