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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 69a69963ab4965368e005f0eefce1a3b34937e73aa09a7aa2513a3c15bd84fd9 |
|
MD5 | 075d32c09ab67d38b7de9e0b1af036a3 |
|
BLAKE2b-256 | 1c0037cfe85e2c0256e462af56d4b7cbe3fe3b212da9c35e1b70b82e072cbc15 |
Close
Hashes for drf_nested_field_multipart-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b42d44b91ef4adba677a5056898282666f63145eaa33cafa9ba5afd86062b776 |
|
MD5 | 9f985bf612d9f755941ae6cd0bc9690e |
|
BLAKE2b-256 | 849d506d3c31c65af1b2283bc473e548c3b20e8cb2cff3c6e9963611510bd8f7 |