Skip to content

Commit c30e180

Browse files
committed
use default pagination class for wq.db.rest
1 parent eda8f67 commit c30e180

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

data_wizard/rest.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
from wq.db.rest.serializers import ModelSerializer
55
from .models import Run
66
from data_wizard import views as wizard
7+
from rest_framework.settings import api_settings
78

89

910
# wq.db-compatible serializers
@@ -34,6 +35,7 @@ def get_object_url(self, instance):
3435

3536
class RunViewSet(ModelViewSet, wizard.RunViewSet):
3637
record_serializer_class = RecordSerializer
38+
pagination_class = api_settings.DEFAULT_PAGINATION_CLASS
3739

3840

3941
# wq.db router registration

0 commit comments

Comments
 (0)