mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-28 11:36:44 +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)
|
@method_decorator(csrf_exempt)
|
||||||
def dispatch(self, *args, **kwargs):
|
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)
|
return super().dispatch(*args, **kwargs)
|
||||||
|
|
||||||
|
|
||||||
@ -463,6 +463,9 @@ class ConfigList(ListAPI):
|
|||||||
serializer_class = common.serializers.ConfigSerializer
|
serializer_class = common.serializers.ConfigSerializer
|
||||||
permission_classes = [IsSuperuser]
|
permission_classes = [IsSuperuser]
|
||||||
|
|
||||||
|
# Specifically disable pagination for this view
|
||||||
|
pagination_class = None
|
||||||
|
|
||||||
|
|
||||||
class ConfigDetail(RetrieveAPI):
|
class ConfigDetail(RetrieveAPI):
|
||||||
"""Detail view for an individual configuration."""
|
"""Detail view for an individual configuration."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user