Skip to content

Commit

Permalink
Add unit tests for partial input optional field behaviour in update m…
Browse files Browse the repository at this point in the history
…utations (#638)
  • Loading branch information
SupImDos authored Oct 19, 2024
1 parent 0a07d8e commit 92c1221
Show file tree
Hide file tree
Showing 2 changed files with 1,058 additions and 1 deletion.
2 changes: 1 addition & 1 deletion strawberry_django/mutations/resolvers.py
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ def update_m2m(
key_attr: str | None = None,
full_clean: bool | FullCleanOptions = True,
):
if value is UNSET:
if value in (None, UNSET): # noqa: PLR6201
return

# FIXME / NOTE: Should this be here?
Expand Down
Loading

0 comments on commit 92c1221

Please sign in to comment.