2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-04-28 03:26:45 +00:00

Disable pagination for ConfigList class (#9210)

This commit is contained in:
Oliver 2025-03-01 16:12:09 +11:00 committed by GitHub
parent 8404e2232f
commit d69fb9011c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -54,7 +54,7 @@ class CsrfExemptMixin:
@method_decorator(csrf_exempt)
def dispatch(self, *args, **kwargs):
"""Overwrites dispatch to be extempt from csrf checks."""
"""Overwrites dispatch to be exempt from CSRF checks."""
return super().dispatch(*args, **kwargs)
@ -463,6 +463,9 @@ class ConfigList(ListAPI):
serializer_class = common.serializers.ConfigSerializer
permission_classes = [IsSuperuser]
# Specifically disable pagination for this view
pagination_class = None
class ConfigDetail(RetrieveAPI):
"""Detail view for an individual configuration."""