9856 review changes

This commit is contained in:
Arthur 2024-03-19 10:11:13 -07:00
parent 908150f9a1
commit 783c4f2edc

View 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()