Permalink
Browse files

Added pagination for files and images.

  • Loading branch information...
1 parent 3593453 commit b5235349c593ca000a23c664a707d5b2a96dc076 @markotibold markotibold committed Nov 12, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 fiber/rest_api/views.py
@@ -81,6 +81,7 @@ class FileList(FiberListCreateAPIView):
model = File
serializer_class = FileSerializer
renderer_classes = (renderers.JSONRenderer, )
+ paginate_by = 5
class FileDetail(generics.RetrieveUpdateDestroyAPIView):
@@ -93,6 +94,7 @@ class ImageList(FiberListCreateAPIView):
model = Image
serializer_class = ImageSerializer
renderer_classes = (renderers.JSONRenderer, )
+ paginate_by = 5
class ImageDetail(generics.RetrieveUpdateDestroyAPIView):

0 comments on commit b523534

Please sign in to comment.