mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-05 07:29:24 +02:00
More configurable pagination
This commit is contained in:
parent
b36b03383e
commit
a3ad476c88
4 changed files with 56 additions and 3 deletions
|
@ -524,6 +524,7 @@ class LicenseViewSet(viewsets.ReadOnlyModelViewSet):
|
|||
serializer_class = serializers.LicenseSerializer
|
||||
queryset = models.License.objects.all().order_by("code")
|
||||
lookup_value_regex = ".*"
|
||||
max_page_size = 1000
|
||||
|
||||
def get_queryset(self):
|
||||
# ensure our licenses are up to date in DB
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue