]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commitdiff
Add missing filter rule types to SavedViewFilterRule model
authorMichael Shamoon <4887959+shamoon@users.noreply.github.com>
Fri, 26 Aug 2022 15:26:08 +0000 (08:26 -0700)
committerMichael Shamoon <4887959+shamoon@users.noreply.github.com>
Fri, 26 Aug 2022 17:02:48 +0000 (10:02 -0700)
And add note to filter-rule-type.ts

src-ui/src/app/data/filter-rule-type.ts
src/documents/models.py

index 35e597ab6599ddb8d8b136dec7bfa5c4fd1e3a9c..3c115e7727cd5ed8220772e03ffdc3ea7f47c09e 100644 (file)
@@ -1,3 +1,4 @@
+// These correspond to src/documents/models.py and changes here require a DB migration (and vice versa)
 export const FILTER_TITLE = 0
 export const FILTER_CONTENT = 1
 
index b2070d2f15f02ca243ebadac67ba17ab219f64c9..fc1d0cb7d781cb491a7497e24812750c6678b408 100644 (file)
@@ -404,6 +404,9 @@ class SavedViewFilterRule(models.Model):
         (20, _("fulltext query")),
         (21, _("more like this")),
         (22, _("has tags in")),
+        (23, _("ASN greater than")),
+        (24, _("ASN less than")),
+        (25, _("storage path is")),
     ]
 
     saved_view = models.ForeignKey(