Skip to content

Commit

Permalink
allow FullCleanOptions in full_clean arg annotation (#667)
Browse files Browse the repository at this point in the history
  • Loading branch information
g-as authored Dec 8, 2024
1 parent a0c6ab0 commit 1dd34ad
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion strawberry_django/mutations/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@
)
from typing_extensions import Literal, Self

from .types import FullCleanOptions


def _get_validation_errors(error: Exception):
if isinstance(error, PermissionDenied):
Expand Down Expand Up @@ -177,7 +179,7 @@ class DjangoMutationCUD(DjangoMutationBase):
def __init__(
self,
input_type: type | None = None,
full_clean: bool = True,
full_clean: bool | FullCleanOptions = True,
argument_name: str | None = None,
key_attr: str | None = None,
**kwargs,
Expand Down

0 comments on commit 1dd34ad

Please sign in to comment.