Skip to main content

Mongoengine Support for Django Rest Framework

Project description

see README.md for markdown version

MongoEngine Model Serializer for Django Rest Framework

This serializer is an extension to Model Serializer. MongoEngine Model Serializer is pretty easy to use if you are familiar with DRF.

MongoEngine Model Serializer Provides:

Serializing
Embedding
Referencing
Validating
MongoEngine Documents
Usage

Write class meta as usual and you're done!

class CommentSerializer(MongoEngineModelSerializer):
class Meta:
model = Comment
depth = 2
related_model_validations = {'owner': User, 'post': Post}
exclude = ('isApproved',)
Requirements

MongoEngine
Django Rest Framework
Setup

No additional configuration/setup needed!

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

django-rest-framework-mongoengine-1.3.2.tar.gz (4.8 kB view details)

Uploaded Source

File details

Details for the file django-rest-framework-mongoengine-1.3.2.tar.gz.

File metadata

File hashes

Hashes for django-rest-framework-mongoengine-1.3.2.tar.gz
Algorithm Hash digest
SHA256 b64858a41804e0768e38f2a26c543c7a892a029d967f7faee4561096d60176db
MD5 f3a91d4208a25c91f15d85cdaf344d0a
BLAKE2b-256 cdb0b7a53dd17f3f57ff4f998834befe5ec1a8889dc5b7911aaa97d3c64323e0

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