From: Michael Shamoon <4887959+shamoon@users.noreply.github.com> Date: Fri, 26 Aug 2022 15:26:08 +0000 (-0700) Subject: Add missing filter rule types to SavedViewFilterRule model X-Git-Tag: v1.9.0-beta.rc1~24^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a406920ae6b33ec04e80a7ecbad425f195f7a2b4;p=thirdparty%2Fpaperless-ngx.git Add missing filter rule types to SavedViewFilterRule model And add note to filter-rule-type.ts --- diff --git a/src-ui/src/app/data/filter-rule-type.ts b/src-ui/src/app/data/filter-rule-type.ts index 35e597ab65..3c115e7727 100644 --- a/src-ui/src/app/data/filter-rule-type.ts +++ b/src-ui/src/app/data/filter-rule-type.ts @@ -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 diff --git a/src/documents/models.py b/src/documents/models.py index b2070d2f15..fc1d0cb7d7 100644 --- a/src/documents/models.py +++ b/src/documents/models.py @@ -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(