9856 cleanup

This commit is contained in:
Arthur 2024-03-13 15:21:18 -07:00
parent 6090d41b34
commit 3b30aa965f

View File

@ -129,19 +129,18 @@ class CustomFieldType(ObjectType):
@strawberry_django.type(
models.CustomFieldChoiceSet,
fields='__all__',
exclude=('extra_choices', ),
filters=CustomFieldChoiceSetFilter
)
class CustomFieldChoiceSetType(ObjectType):
extra_choices: List[List[str]]
@strawberry_django.field
def choices_for(self) -> List[Annotated["CustomFieldType", strawberry.lazy('extras.graphql.types')]]:
return self.choices_for.all()
@strawberry_django.field
def extra_choices(self) -> List[str]:
return self.extra_choices
def extra_choices(self) -> List[str] | None:
return list(self.extra_choices)
@strawberry_django.type(