9604 fix tests

This commit is contained in:
Arthur Hanson 2024-10-25 14:45:43 -07:00
parent 921a4af2d9
commit 486003474f
3 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
# models values for ContentTypes which may be CircuitTermination scope types
CIRCUIT_TERMINATION_SCOPE_TYPES = (
'region', 'sitegroup', 'site', 'location',
'region', 'sitegroup', 'site', 'location', 'providernetwork',
)

View File

@ -59,7 +59,7 @@ class ProviderNetworkType(NetBoxObjectType):
@strawberry_django.type(
models.CircuitTermination,
exclude=('scope_type', 'scope_id', '_location', '_region', '_site', '_sitegroup'),
exclude=('scope_type', 'scope_id', '_location', '_region', '_site', '_sitegroup', '_provider_network'),
filters=CircuitTerminationFilter
)
class CircuitTerminationType(CustomFieldsMixin, TagsMixin, CabledObjectMixin, ObjectType):

View File

@ -40,7 +40,7 @@ class Migration(migrations.Migration):
name='scope_type',
field=models.ForeignKey(
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,
on_delete=django.db.models.deletion.PROTECT,
related_name='+',