You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
1.9 KiB
44 lines
1.9 KiB
# -*- coding: utf-8 -*-
|
|
from __future__ import unicode_literals
|
|
|
|
from django.db import models, migrations
|
|
import tinymce.models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
('cms', '0003_auto_20140926_2347'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='CMSTabsList',
|
|
fields=[
|
|
('cmsplugin_ptr', models.OneToOneField(parent_link=True, auto_created=True, primary_key=True, serialize=False, to='cms.CMSPlugin')),
|
|
('template', models.CharField(default=b'cmsplugin_tabs/tabs.html', max_length=255, verbose_name='Template', choices=[(b'cmsplugin_tabs/tabs.html', 'Tabs'), (b'cmsplugin_tabs/accordion.html', 'Accordion')])),
|
|
],
|
|
options={
|
|
'abstract': False,
|
|
},
|
|
bases=('cms.cmsplugin',),
|
|
),
|
|
migrations.CreateModel(
|
|
name='SingleTab',
|
|
fields=[
|
|
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
|
|
('title', models.CharField(max_length=255, verbose_name='Title')),
|
|
('content', tinymce.models.HTMLField(verbose_name='Content')),
|
|
('slug', models.SlugField(default=b'', max_length=32, verbose_name='Slug', blank=True)),
|
|
('order', models.PositiveIntegerField(default=1, verbose_name='Order', db_index=True)),
|
|
('is_strong', models.BooleanField(default=False, help_text='When True then label of the tab will be bold', verbose_name='Strong')),
|
|
('plugin', models.ForeignKey(related_name='tabs', to='cmsplugin_tabs.CMSTabsList')),
|
|
],
|
|
options={
|
|
'ordering': ['order'],
|
|
'verbose_name': 'Tab',
|
|
'verbose_name_plural': 'Tabs',
|
|
},
|
|
bases=(models.Model,),
|
|
),
|
|
]
|
|
|