NestedMultipartMixin
Overview
Accept object saves with JSON multipart fields and a file-path manifest.
Replace DRF's standard multipart parser while retaining other configured parsers. Requests without a manifest keep DRF's existing form behavior. Place this mixin before a DRF view or viewset in its inheritance list.
get_parsers
Use the nested parser wherever the standard multipart parser is enabled.
Signature
get_parsers(self)
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| self | yes |
Source
server/vueda/core/parsers.py:127
initialize_request
Keep decoded data separate from the flat uploads that Django must close.
Signature
initialize_request(self, request, args, kwargs)
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| self | yes | |||
| request | yes | |||
| args | no | |||
| kwargs | no |
Source
server/vueda/core/parsers.py:133
Source
server/vueda/core/parsers.py:119