1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

9856 update types

This commit is contained in:
Arthur
2024-02-26 12:57:53 -08:00
parent 3e284c59d8
commit 44f4d60f5d
2 changed files with 114 additions and 4 deletions

View File

@@ -9,7 +9,7 @@ import strawberry_django
from extras import models
from extras.graphql.mixins import CustomFieldsMixin, TagsMixin
from netbox.graphql.types import BaseObjectType, ObjectType, OrganizationalObjectType
from netbox.graphql.types import BaseObjectType, ContentTypeType, ObjectType, OrganizationalObjectType
from .filters import *
__all__ = (
@@ -200,7 +200,11 @@ class SavedFilterType(ObjectType):
filters=TagFilter
)
class TagType(ObjectType):
pass
color: str
@strawberry_django.field
def object_types(self) -> List[ContentTypeType]:
return self.object_types.all()
@strawberry_django.type(