Skip to content

Commit e3d55c5

Browse files
committed
Merge tag '26.1.7' into develop
Use PREPRINT_CONTRIBUTORS_BULK_LIMIT for PreprintContirbutorsSerializer when possible
2 parents 53d2430 + 525a70c commit e3d55c5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

api/preprints/serializers.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
HideIfPreprint,
2222
LinkedNodesRelationshipSerializer,
2323
)
24+
from api.base.settings import BULK_SETTINGS
2425
from api.base.utils import absolute_reverse, get_user_auth
2526
from api.base.parsers import NO_DATA_ERROR
2627
from api.nodes.serializers import (
@@ -615,6 +616,7 @@ class PreprintContributorsSerializer(NodeContributorsSerializer):
615616

616617
class Meta:
617618
type_ = 'contributors'
619+
bulk_limit = BULK_SETTINGS.get('PREPRINT_CONTRIBUTORS_BULK_LIMIT', BULK_SETTINGS['DEFAULT_BULK_LIMIT'])
618620

619621
def get_absolute_url(self, obj):
620622
return absolute_reverse(

0 commit comments

Comments
 (0)