mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
33 lines
1.2 KiB
Python
33 lines
1.2 KiB
Python
|
# Generated by Django 2.2 on 2019-04-15 19:28
|
||
|
|
||
|
from django.db import migrations, models
|
||
|
import django.db.models.deletion
|
||
|
|
||
|
|
||
|
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)),
|
||
|
('button_class', models.CharField(max_length=30)),
|
||
|
('new_window', models.BooleanField()),
|
||
|
('content_type', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='contenttypes.ContentType')),
|
||
|
],
|
||
|
options={
|
||
|
'ordering': ['group_name', 'weight', 'name'],
|
||
|
},
|
||
|
),
|
||
|
]
|