Skip to content

Commit

Permalink
Added pagination for files and images.
Browse files Browse the repository at this point in the history
  • Loading branch information
markotibold committed Dec 21, 2012
1 parent 3593453 commit b523534
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fiber/rest_api/views.py
Expand Up @@ -81,6 +81,7 @@ class FileList(FiberListCreateAPIView):
model = File
serializer_class = FileSerializer
renderer_classes = (renderers.JSONRenderer, )
paginate_by = 5


class FileDetail(generics.RetrieveUpdateDestroyAPIView):
Expand All @@ -93,6 +94,7 @@ class ImageList(FiberListCreateAPIView):
model = Image
serializer_class = ImageSerializer
renderer_classes = (renderers.JSONRenderer, )
paginate_by = 5


class ImageDetail(generics.RetrieveUpdateDestroyAPIView):
Expand Down

0 comments on commit b523534

Please sign in to comment.