Created
October 5, 2014 16:29
-
-
Save rkorkosz/c82d4df6174e0ed6a388 to your computer and use it in GitHub Desktop.
Mongoengine views
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from rest_framework_mongoengine.viewsets import ModelViewSet | |
| from api.models import TodoItem | |
| from api.serializers import TodoSerializer | |
| class DowcipViewSet(ModelViewSet): | |
| serializer_class = TodoSerializer | |
| model = TodoItem | |
| paginate_by = 10 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment