From c8d0e014bd5c0c7c2035d37e3154e17e9382be88 Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Fri, 7 Feb 2025 15:41:47 -0800 Subject: [PATCH] Migration --- src-ui/src/app/data/filter-rule-type.ts | 2 +- .../migrations/1062_alter_savedviewfilterrule_rule_type.py | 1 + src/documents/models.py | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src-ui/src/app/data/filter-rule-type.ts b/src-ui/src/app/data/filter-rule-type.ts index daf7936b8..bb2bf762c 100644 --- a/src-ui/src/app/data/filter-rule-type.ts +++ b/src-ui/src/app/data/filter-rule-type.ts @@ -62,7 +62,7 @@ export const FILTER_HAS_ANY_CUSTOM_FIELDS = 41 export const FILTER_CUSTOM_FIELDS_QUERY = 42 -export const FILTER_MIME_TYPE = 43 +export const FILTER_MIME_TYPE = 47 export const FILTER_RULE_TYPES: FilterRuleType[] = [ { diff --git a/src/documents/migrations/1062_alter_savedviewfilterrule_rule_type.py b/src/documents/migrations/1062_alter_savedviewfilterrule_rule_type.py index 0b0e3cba3..c5a6bb90e 100644 --- a/src/documents/migrations/1062_alter_savedviewfilterrule_rule_type.py +++ b/src/documents/migrations/1062_alter_savedviewfilterrule_rule_type.py @@ -62,6 +62,7 @@ class Migration(migrations.Migration): (44, "created from"), (45, "added to"), (46, "added from"), + (47, "mime type is"), ], verbose_name="rule type", ), diff --git a/src/documents/models.py b/src/documents/models.py index 25e3c62fd..4c644c14c 100644 --- a/src/documents/models.py +++ b/src/documents/models.py @@ -526,6 +526,7 @@ class SavedViewFilterRule(models.Model): (44, _("created from")), (45, _("added to")), (46, _("added from")), + (47, _("mime type is")), ] saved_view = models.ForeignKey(