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 hashes)

Uploaded Source

Built Distribution

Supported by

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