2019-04-15 17:12:41 -04:00
|
|
|
# Generated by Django 2.2 on 2019-04-15 19:28
|
|
|
|
|
|
|
|
from django.db import migrations, models
|
|
|
|
import django.db.models.deletion
|
2019-04-15 21:53:22 -04:00
|
|
|
import extras.models
|
2019-04-15 17:12:41 -04:00
|
|
|
|
|
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
|
|
|
|
dependencies = [
|
|
|
|
('contenttypes', '0002_remove_content_type_name'),
|
|
|
|
('extras', '0021_add_color_comments_changelog_to_tag'),
|
|
|
|
]
|
|
|
|
|
|
|
|
operations = [
|
|
|
|
migrations.CreateModel(
|
|
|
|
name='CustomLink',
|
|
|
|
fields=[
|
|
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False)),
|
|
|
|
('name', models.CharField(max_length=100, unique=True)),
|
|
|
|
('text', models.CharField(max_length=200)),
|
|
|
|
('url', models.CharField(max_length=200)),
|
|
|
|
('weight', models.PositiveSmallIntegerField(default=100)),
|
|
|
|
('group_name', models.CharField(blank=True, max_length=50)),
|
2019-04-15 21:29:02 -04:00
|
|
|
('button_class', models.CharField(default='default', max_length=30)),
|
2019-04-15 17:12:41 -04:00
|
|
|
('new_window', models.BooleanField()),
|
2019-04-15 21:53:22 -04:00
|
|
|
('content_type', models.ForeignKey(limit_choices_to=extras.models.get_custom_link_models, on_delete=django.db.models.deletion.CASCADE, to='contenttypes.ContentType')),
|
2019-04-15 17:12:41 -04:00
|
|
|
],
|
|
|
|
options={
|
|
|
|
'ordering': ['group_name', 'weight', 'name'],
|
|
|
|
},
|
|
|
|
),
|
|
|
|
]
|