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:
parent
8404e2232f
commit
d69fb9011c
@ -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."""
|
||||
|
Loading…
x
Reference in New Issue
Block a user