mirror of
https://github.com/netbox-community/netbox.git
synced 2026-01-24 20:39:59 -06:00
Closes #17166: Remove obsolete limit_choices_to argument from ForeignKey & M2M fields
This commit is contained in:
@@ -154,7 +154,6 @@ class Migration(migrations.Migration):
|
||||
'role',
|
||||
models.ForeignKey(
|
||||
blank=True,
|
||||
limit_choices_to={'vm_role': True},
|
||||
null=True,
|
||||
on_delete=django.db.models.deletion.PROTECT,
|
||||
related_name='virtual_machines',
|
||||
|
||||
@@ -32,7 +32,6 @@ class Migration(migrations.Migration):
|
||||
name='scope_type',
|
||||
field=models.ForeignKey(
|
||||
blank=True,
|
||||
limit_choices_to=models.Q(('model__in', ('region', 'sitegroup', 'site', 'location'))),
|
||||
null=True,
|
||||
on_delete=django.db.models.deletion.PROTECT,
|
||||
related_name='+',
|
||||
|
||||
@@ -82,7 +82,6 @@ class VirtualMachine(ContactsMixin, ImageAttachmentsMixin, RenderConfigMixin, Co
|
||||
to='dcim.DeviceRole',
|
||||
on_delete=models.PROTECT,
|
||||
related_name='virtual_machines',
|
||||
limit_choices_to={'vm_role': True},
|
||||
blank=True,
|
||||
null=True
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user