mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-27 02:48:38 -06:00
Remove unnecessary limit_choices_to arg in new Service.parent_object_type field
Re: #17166
This commit is contained in:
parent
0564ee9cfc
commit
158bb0d09d
@ -20,14 +20,6 @@ class Migration(migrations.Migration):
|
|||||||
name='parent_object_type',
|
name='parent_object_type',
|
||||||
field=models.ForeignKey(
|
field=models.ForeignKey(
|
||||||
blank=True,
|
blank=True,
|
||||||
limit_choices_to=models.Q(
|
|
||||||
models.Q(
|
|
||||||
models.Q(('app_label', 'dcim'), ('model', 'device')),
|
|
||||||
models.Q(('app_label', 'ipam'), ('model', 'fhrpgroup')),
|
|
||||||
models.Q(('app_label', 'virtualization'), ('model', 'virtualmachine')),
|
|
||||||
_connector='OR'
|
|
||||||
)
|
|
||||||
),
|
|
||||||
null=True,
|
null=True,
|
||||||
on_delete=django.db.models.deletion.PROTECT,
|
on_delete=django.db.models.deletion.PROTECT,
|
||||||
related_name='+',
|
related_name='+',
|
||||||
|
@ -66,7 +66,6 @@ class Service(ContactsMixin, ServiceBase, PrimaryModel):
|
|||||||
"""
|
"""
|
||||||
parent_object_type = models.ForeignKey(
|
parent_object_type = models.ForeignKey(
|
||||||
to='contenttypes.ContentType',
|
to='contenttypes.ContentType',
|
||||||
limit_choices_to=SERVICE_ASSIGNMENT_MODELS,
|
|
||||||
on_delete=models.PROTECT,
|
on_delete=models.PROTECT,
|
||||||
related_name='+',
|
related_name='+',
|
||||||
blank=True,
|
blank=True,
|
||||||
|
Loading…
Reference in New Issue
Block a user