mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-31 04:46:26 -06:00
9604 fix tests
This commit is contained in:
parent
921a4af2d9
commit
486003474f
@ -1,4 +1,4 @@
|
|||||||
# models values for ContentTypes which may be CircuitTermination scope types
|
# models values for ContentTypes which may be CircuitTermination scope types
|
||||||
CIRCUIT_TERMINATION_SCOPE_TYPES = (
|
CIRCUIT_TERMINATION_SCOPE_TYPES = (
|
||||||
'region', 'sitegroup', 'site', 'location',
|
'region', 'sitegroup', 'site', 'location', 'providernetwork',
|
||||||
)
|
)
|
||||||
|
@ -59,7 +59,7 @@ class ProviderNetworkType(NetBoxObjectType):
|
|||||||
|
|
||||||
@strawberry_django.type(
|
@strawberry_django.type(
|
||||||
models.CircuitTermination,
|
models.CircuitTermination,
|
||||||
exclude=('scope_type', 'scope_id', '_location', '_region', '_site', '_sitegroup'),
|
exclude=('scope_type', 'scope_id', '_location', '_region', '_site', '_sitegroup', '_provider_network'),
|
||||||
filters=CircuitTerminationFilter
|
filters=CircuitTerminationFilter
|
||||||
)
|
)
|
||||||
class CircuitTerminationType(CustomFieldsMixin, TagsMixin, CabledObjectMixin, ObjectType):
|
class CircuitTerminationType(CustomFieldsMixin, TagsMixin, CabledObjectMixin, ObjectType):
|
||||||
|
@ -40,7 +40,7 @@ class Migration(migrations.Migration):
|
|||||||
name='scope_type',
|
name='scope_type',
|
||||||
field=models.ForeignKey(
|
field=models.ForeignKey(
|
||||||
blank=True,
|
blank=True,
|
||||||
limit_choices_to=models.Q(('model__in', ('region', 'sitegroup', 'site', 'location'))),
|
limit_choices_to=models.Q(('model__in', ('region', 'sitegroup', 'site', 'location', 'providernetwork'))),
|
||||||
null=True,
|
null=True,
|
||||||
on_delete=django.db.models.deletion.PROTECT,
|
on_delete=django.db.models.deletion.PROTECT,
|
||||||
related_name='+',
|
related_name='+',
|
||||||
|
Loading…
Reference in New Issue
Block a user