Parser for nested params in multipart file upload
Project description
# drf-nested-field-multipart
Parser for nested params in multipart file upload
# Usage
```python
from drf_nested_field_multipart import NestedMultipartParser
class YourViewSet(viewsets.ViewSet):
parser_classes = (NestedMultipartParser)
```
To enable JSON and multipart
```python
from drf_nested_field_multipart import NestedMultipartParser
from rest_framework.parsers import JSONParser
class YourViewSet(viewsets.ViewSet):
parser_classes = (JSONParser, NestedMultipartParser)
```
# Installation
`pip install drf-nested-field-multipart`
Parser for nested params in multipart file upload
# Usage
```python
from drf_nested_field_multipart import NestedMultipartParser
class YourViewSet(viewsets.ViewSet):
parser_classes = (NestedMultipartParser)
```
To enable JSON and multipart
```python
from drf_nested_field_multipart import NestedMultipartParser
from rest_framework.parsers import JSONParser
class YourViewSet(viewsets.ViewSet):
parser_classes = (JSONParser, NestedMultipartParser)
```
# Installation
`pip install drf-nested-field-multipart`
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for drf-nested-field-multipart-0.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | fa01b2fb6b8fcc100c1641ff9805118c84b939a5396e5f9e1ca966ce2396c4a3 |
|
MD5 | cde84800993d67a0508ae43a752c5a14 |
|
BLAKE2b-256 | b9f79f5c8847c10da87178481d9b3c2b7123e4e29485cb2b39e9c2c6ef8cc36a |
Close
Hashes for drf_nested_field_multipart-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b6efe11d45fe7894edce0f3ebc8f4ccff55643a1abf9b18d7591dd997b7fdc5a |
|
MD5 | 65d1da0bbb5332d05c642e52890c3028 |
|
BLAKE2b-256 | 10dfbb403eb2a086d3fb6806fc53ae0bd4c372c8f307a41aa44f37070fa891bf |