Use marshmallow-dataclass as a Django Field
Project description
Use marshmallow-dataclasses as Django Fields.
Usage
from marshmallow_dataclass_djangofield import *
class MyModel(Model):
@marshmallow_dataclass_djangofield(model_name='MyModel')
@marshmallow_dataclass.dataclass
class MyDataClass:
foo: str
bar: int
foobars = MarshmallowField(many=True, schema=MyDataClass)
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 marshmallow-dataclass-djangofield-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd429ff042095b801d0c995defbbe434df363702b668ae03ea5e95dd240e1c7c |
|
MD5 | d1b383f32a3d1e2ba5c5ef31fbae54cd |
|
BLAKE2b-256 | fbcc38b384208ea1906d14f0fff233e9fe73336e274f04d05843f92e1f64198a |
Close
Hashes for marshmallow_dataclass_djangofield-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f0aec9f34d358808e5dc6598964325e84536db45324aaaf3eb4ec30ee9c0c18b |
|
MD5 | a0e6f0b00d0936c2b758c0aacfe2ca07 |
|
BLAKE2b-256 | 917aedeb443a86810eee07286690b70f4ae16d69ad0f6f50c72dc0a98a37c163 |