Skip to content

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

Merge branch 'master' into dev

Jonas Winklerea58c66fd43d
diff --cc src/documents/consumer.py
index b50d40a0b,2d5ca6a71..5e95421cc
mode 100755,100644..100755
--- a/src/documents/consumer.py
+++ b/src/documents/consumer.py
diff --cc src/documents/migrations/1001_workflow_improvements.py
index 20820c32c,11b1a9ebb..d0e5158db
mode 100755,100644..100755
--- a/src/documents/migrations/1001_workflow_improvements.py
+++ b/src/documents/migrations/1001_workflow_improvements.py
diff --cc src/documents/models.py
index ce5ece338,4c29fa4b8..bd5cf161b
mode 100755,100644..100755
--- a/src/documents/models.py
+++ b/src/documents/models.py
@@@ -24,13 -25,9 +25,13 @@@ except ImportError
class MatchingModel(models.Model):
name = models.CharField(max_length=128, unique=True)
- slug = models.SlugField(blank=True)
+ slug = models.SlugField(blank=True, editable=False)
- automatic_classification = models.BooleanField(default=False, help_text='Automatically assign to newly added documents based on current usage in your document collection.')
+ automatic_classification = models.BooleanField(
+ default=False,
+ help_text="Automatically assign to newly added documents based on "
+ "current usage in your document collection."
+ )
class Meta:
abstract = True
diff --cc src/paperless/settings.py
index 03edef88e,b0eb809d3..9340216f3
--- a/src/paperless/settings.py
+++ b/src/paperless/settings.py
@@@ -199,12 -203,19 +203,22 @@@ STATIC_URL = os.getenv("PAPERLESS_STATI
MEDIA_URL = os.getenv("PAPERLESS_MEDIA_URL", "/media/")
+ # Other
+
+ # Disable Django's artificial limit on the number of form fields to submit at
+ # once. This is a protection against overloading the server, but since this is
+ # a self-hosted sort of gig, the benefits of being able to mass-delete a tonne
+ # of log entries outweight the benefits of such a safeguard.
+
+ DATA_UPLOAD_MAX_NUMBER_FIELDS = None
+
+
# Document classification models location
MODEL_FILE = os.getenv(
- "PAPERLESS_MODEL_FILE", os.path.join(BASE_DIR, "..", "models", "model.pickle"))
+ "PAPERLESS_MODEL_FILE", os.path.join(
+ BASE_DIR, "..", "models", "model.pickle"
+ )
+)
# Paperless-specific stuff