mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-24 17:38:37 -06:00
Add limit_choices_to to CustomLink.content_type field
This commit is contained in:
parent
48fe5470d2
commit
6034265dfd
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
from django.db import migrations, models
|
from django.db import migrations, models
|
||||||
import django.db.models.deletion
|
import django.db.models.deletion
|
||||||
|
import extras.models
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration):
|
class Migration(migrations.Migration):
|
||||||
@ -23,7 +24,7 @@ class Migration(migrations.Migration):
|
|||||||
('group_name', models.CharField(blank=True, max_length=50)),
|
('group_name', models.CharField(blank=True, max_length=50)),
|
||||||
('button_class', models.CharField(default='default', max_length=30)),
|
('button_class', models.CharField(default='default', max_length=30)),
|
||||||
('new_window', models.BooleanField()),
|
('new_window', models.BooleanField()),
|
||||||
('content_type', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='contenttypes.ContentType')),
|
('content_type', models.ForeignKey(limit_choices_to=extras.models.get_custom_link_models, on_delete=django.db.models.deletion.CASCADE, to='contenttypes.ContentType')),
|
||||||
],
|
],
|
||||||
options={
|
options={
|
||||||
'ordering': ['group_name', 'weight', 'name'],
|
'ordering': ['group_name', 'weight', 'name'],
|
||||||
|
Loading…
Reference in New Issue
Block a user