mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
18 lines
357 B
Python
18 lines
357 B
Python
![]() |
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()
|