Viewsets

Adaptation of DRF viewsets.

You should use them instead of original DRF classes.

class rest_framework_mongoengine.viewsets.GenericViewSet(**kwargs)

Adaptation of DRF GenericViewSet

class rest_framework_mongoengine.viewsets.ModelViewSet(**kwargs)

Adaptation of DRF ModelViewSet

class rest_framework_mongoengine.viewsets.ReadOnlyModelViewSet(**kwargs)

Adaptation of DRF ReadOnlyModelViewSet