mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-21 11:37:21 -06:00
9856 review changes
This commit is contained in:
parent
908150f9a1
commit
783c4f2edc
17
netbox/tenancy/graphql/mixins.py
Normal file
17
netbox/tenancy/graphql/mixins.py
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
from typing import Annotated, List
|
||||||
|
|
||||||
|
import strawberry
|
||||||
|
import strawberry_django
|
||||||
|
|
||||||
|
|
||||||
|
__all__ = (
|
||||||
|
'ContactAssignmentsMixin',
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
@strawberry.type
|
||||||
|
class ContactAssignmentsMixin:
|
||||||
|
|
||||||
|
@strawberry_django.field
|
||||||
|
def assignments(self) -> List[Annotated["ContactAssignmentType", strawberry.lazy('tenancy.graphql.types')]]:
|
||||||
|
return self.assignments.all()
|
Loading…
Reference in New Issue
Block a user