mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-08 15:55:31 +01:00
Add missing filter rule types to SavedViewFilterRule model
And add note to filter-rule-type.ts
This commit is contained in:
parent
44e596b0c4
commit
a406920ae6
2 changed files with 4 additions and 0 deletions
|
|
@ -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_TITLE = 0
|
||||||
export const FILTER_CONTENT = 1
|
export const FILTER_CONTENT = 1
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -404,6 +404,9 @@ class SavedViewFilterRule(models.Model):
|
||||||
(20, _("fulltext query")),
|
(20, _("fulltext query")),
|
||||||
(21, _("more like this")),
|
(21, _("more like this")),
|
||||||
(22, _("has tags in")),
|
(22, _("has tags in")),
|
||||||
|
(23, _("ASN greater than")),
|
||||||
|
(24, _("ASN less than")),
|
||||||
|
(25, _("storage path is")),
|
||||||
]
|
]
|
||||||
|
|
||||||
saved_view = models.ForeignKey(
|
saved_view = models.ForeignKey(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue