Skip to content

Commit

Permalink
9604 fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
arthanson committed Oct 25, 2024
1 parent 921a4af commit 4860034
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion netbox/circuits/constants.py
Original file line number Diff line number Diff line change
@@ -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',
)
2 changes: 1 addition & 1 deletion netbox/circuits/graphql/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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='+',
Expand Down

0 comments on commit 4860034

Please sign in to comment.