mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-26 18:38: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',
|
||||
field=models.ForeignKey(
|
||||
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,
|
||||
on_delete=django.db.models.deletion.PROTECT,
|
||||
related_name='+',
|
||||
|
@ -66,7 +66,6 @@ class Service(ContactsMixin, ServiceBase, PrimaryModel):
|
||||
"""
|
||||
parent_object_type = models.ForeignKey(
|
||||
to='contenttypes.ContentType',
|
||||
limit_choices_to=SERVICE_ASSIGNMENT_MODELS,
|
||||
on_delete=models.PROTECT,
|
||||
related_name='+',
|
||||
blank=True,
|
||||
|
Loading…
Reference in New Issue
Block a user