Skip to main content

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`

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

drf-nested-field-multipart-0.0.3.tar.gz (1.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

drf_nested_field_multipart-0.0.3-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file drf-nested-field-multipart-0.0.3.tar.gz.

File metadata

File hashes

Hashes for drf-nested-field-multipart-0.0.3.tar.gz
Algorithm Hash digest
SHA256 f726847a558e807d239392bb4e1c910bcd995157388fef83e70c506c0265549a
MD5 60b99295c121085b17aff0fbeddc9678
BLAKE2b-256 1b1e8294c8eabe22646e6c97349caffc1e9191719c278287616f6bd3710008b0

See more details on using hashes here.

File details

Details for the file drf_nested_field_multipart-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for drf_nested_field_multipart-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 7f957d3071f24d7c94ae7e6f9b299fde046e90653930f31f1114df377651ede4
MD5 11baeb079816fc613e6bbd601b0eb766
BLAKE2b-256 0fadd266f478d47730d3b29e062b022481c801b451949e3bd73b7746af9e5b0c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page