mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-08 06:14:47 +03:00
Added docs for MappingField
This commit is contained in:
parent
806b0f60cf
commit
643893334b
|
@ -364,6 +364,18 @@ As with `ChoiceField`, both the `allow_blank` and `allow_null` options are valid
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
# Mapping field
|
||||||
|
|
||||||
|
## MappingField
|
||||||
|
|
||||||
|
A field that converts value with given mapping dict.
|
||||||
|
|
||||||
|
**Signature:** `MappingField(mapping)`
|
||||||
|
|
||||||
|
- `mapping` - A dict of valid values that should be converted both directions.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
# File upload fields
|
# File upload fields
|
||||||
|
|
||||||
#### Parsers and file uploads.
|
#### Parsers and file uploads.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user