Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions backend/custom/graphql_auto.py
Original file line number Diff line number Diff line change
Expand Up @@ -429,6 +429,13 @@ def __init_subclass_with_meta__(
_meta=_meta, input_fields=input_fields, **options
)

@classmethod
def perform_mutate(cls, form, info):
obj = form.save(commit=False)
obj.save()
form.save_m2m()
return cls(errors=[], **{cls._meta.return_field_name: obj})

@classmethod
def get_form_kwargs(cls, root, info, **input):
# Get file data
Expand Down
Loading