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.
4 from django.db import models, migrations
7 class Migration(migrations.Migration):
13 migrations.CreateModel(
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)),
25 'ordering': ('slug',),
26 'verbose_name': 'button',
27 'verbose_name_plural': 'buttons',
29 bases=(models.Model,),
31 migrations.CreateModel(
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)),
40 'ordering': ('position', 'name'),
41 'verbose_name': 'button group',
42 'verbose_name_plural': 'button groups',
44 bases=(models.Model,),
46 migrations.CreateModel(
49 ('name', models.CharField(max_length=64, serialize=False, primary_key=True)),
50 ('code', models.TextField()),
54 bases=(models.Model,),
59 field=models.ManyToManyField(to='toolbar.ButtonGroup'),
60 preserve_default=True,
65 field=models.ForeignKey(blank=True, to='toolbar.Scriptlet', null=True, on_delete=models.CASCADE),
66 preserve_default=True,