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
from rest_framework import viewsets
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
from rest_framework import viewsets
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
from rest_framework import viewsets
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
from rest_framework import viewsets
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.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f726847a558e807d239392bb4e1c910bcd995157388fef83e70c506c0265549a |
|
MD5 | 60b99295c121085b17aff0fbeddc9678 |
|
BLAKE2b-256 | 1b1e8294c8eabe22646e6c97349caffc1e9191719c278287616f6bd3710008b0 |
Close
Hashes for drf_nested_field_multipart-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7f957d3071f24d7c94ae7e6f9b299fde046e90653930f31f1114df377651ede4 |
|
MD5 | 11baeb079816fc613e6bbd601b0eb766 |
|
BLAKE2b-256 | 0fadd266f478d47730d3b29e062b022481c801b451949e3bd73b7746af9e5b0c |