Commit bb3874ba authored by Jamesie Pic's avatar Jamesie Pic

Added pagination on representatives api

parent d5eb7cab
......@@ -63,6 +63,7 @@ class RepresentativeViewSet(viewsets.ReadOnlyModelViewSet):
}
search_fields = ('first_name', 'last_name', 'slug')
ordering_fields = ('id', 'birth_date', 'last_name', 'full_name')
pagination_class = DefaultWebPagination
def get_queryset(self):
qs = super(RepresentativeViewSet, self).get_queryset()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment