Skip to content

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

Added a default algorithm

Daniel Quinnfc5d89c6fc83
diff --git a/src/documents/models.py b/src/documents/models.py
index 133fdf6fc..478fac1b2 100644
--- a/src/documents/models.py
+++ b/src/documents/models.py
@@ -67,8 +67,7 @@ class Tag(SluggedModel):
match = models.CharField(max_length=256, blank=True)
matching_algorithm = models.PositiveIntegerField(
choices=MATCHING_ALGORITHMS,
- blank=True,
- null=True,
+ default=MATCH_ANY,
help_text=(
"Which algorithm you want to use when matching text to the OCR'd "
"PDF. Here, \"any\" looks for any occurrence of any word provided "