1👍
serializer = WriteIssueSerializer(data=issue_dict, file=file, context=self.get_serializer_context())
This calls the constructor of WriteIssueSerializer (__init__()
), not .create()
. So you have to create the extra argument in there, or call .create()
.
Source:stackexchange.com