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

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