Skip to content

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

This is how the original filenames were generated. Keep it this way for compatibility.

Jonas Winkleradc217e6fd56
diff --git a/src/documents/file_handling.py b/src/documents/file_handling.py
index cac317d4c..22d5a052d 100644
--- a/src/documents/file_handling.py
+++ b/src/documents/file_handling.py
@@ -72,7 +72,7 @@ def generate_filename(document):
path = settings.PAPERLESS_FILENAME_FORMAT.format(
correspondent=slugify(document.correspondent),
title=slugify(document.title),
- created=document.created.date(),
+ created=slugify(document.created),
added=slugify(document.added),
tags=tags,
)