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!
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
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
Close
Hashes for django-rest-framework-mongoengine-1.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5b74f06e383fd9f530c6ed4fc67046556efc19be2d1c1ce2328fa5768251c2fc |
|
MD5 | b5dac87924c8b5b4d66d747c0c4cc4fd |
|
BLAKE2b-256 | 0e43dcb006099d818662b58f67c0ee9de80058f7fe5b44d1fe6b652eaf292660 |