mirror of
https://github.com/netbox-community/netbox.git
synced 2026-01-15 08:12:18 -06:00
Incorporate Owner fields/types into V1 classes
This commit is contained in:
@@ -5,7 +5,7 @@ import strawberry_django
|
||||
from django.contrib.contenttypes.models import ContentType as DjangoContentType
|
||||
|
||||
from core import models
|
||||
from netbox.graphql.types_v1 import BaseObjectTypeV1, NetBoxObjectTypeV1
|
||||
from netbox.graphql.types_v1 import BaseObjectTypeV1, PrimaryObjectTypeV1
|
||||
from .filters_v1 import *
|
||||
|
||||
__all__ = (
|
||||
@@ -32,8 +32,7 @@ class DataFileTypeV1(BaseObjectTypeV1):
|
||||
filters=DataSourceFilterV1,
|
||||
pagination=True
|
||||
)
|
||||
class DataSourceTypeV1(NetBoxObjectTypeV1):
|
||||
|
||||
class DataSourceTypeV1(PrimaryObjectTypeV1):
|
||||
datafiles: List[Annotated["DataFileTypeV1", strawberry.lazy('core.graphql.types_v1')]]
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user