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(