Skip to content

A community-supported supercharged document management system: scan, index and archive all your documents

Fix: Allow DRF to validate the maximum API key length (#13614)

Trenton H17dc482872cf
diff --git a/src/paperless/serialisers.py b/src/paperless/serialisers.py
index 58702b726..173de8153 100644
--- a/src/paperless/serialisers.py
+++ b/src/paperless/serialisers.py
@@ -217,6 +217,7 @@ class ApplicationConfigurationSerializer(
llm_api_key = ObfuscatedPasswordField(
required=False,
allow_null=True,
+ max_length=1024,
)
def run_validation(self, data):