Switch to sentence case for filter pill text

This commit is contained in:
Jason Novinger 2025-11-24 15:41:55 -06:00
parent edbcea817c
commit 9d60342ec7

View File

@ -25,76 +25,76 @@ FORM_FIELD_LOOKUPS = {
forms.BooleanField: [], forms.BooleanField: [],
forms.NullBooleanField: [], forms.NullBooleanField: [],
forms.CharField: [ forms.CharField: [
('exact', _('Is')), ('exact', _('is')),
('n', _('Is Not')), ('n', _('is not')),
('ic', _('Contains')), ('ic', _('contains')),
('isw', _('Starts With')), ('isw', _('starts with')),
('iew', _('Ends With')), ('iew', _('ends with')),
('ie', _('Equals (case-insensitive)')), ('ie', _('equals (case-insensitive)')),
('regex', _('Matches Pattern')), ('regex', _('matches pattern')),
('iregex', _('Matches Pattern (case-insensitive)')), ('iregex', _('matches pattern (case-insensitive)')),
(MODIFIER_EMPTY_TRUE, _('Is Empty')), (MODIFIER_EMPTY_TRUE, _('is empty')),
(MODIFIER_EMPTY_FALSE, _('Is Not Empty')), (MODIFIER_EMPTY_FALSE, _('is not empty')),
], ],
forms.IntegerField: [ forms.IntegerField: [
('exact', _('Is')), ('exact', _('is')),
('n', _('Is Not')), ('n', _('is not')),
('gt', _('Greater Than (>)')), ('gt', _('greater than (>)')),
('gte', _('At Least (≥)')), ('gte', _('at least (≥)')),
('lt', _('Less Than (<)')), ('lt', _('less than (<)')),
('lte', _('At Most (≤)')), ('lte', _('at most (≤)')),
(MODIFIER_EMPTY_TRUE, _('Is Empty')), (MODIFIER_EMPTY_TRUE, _('is empty')),
(MODIFIER_EMPTY_FALSE, _('Is Not Empty')), (MODIFIER_EMPTY_FALSE, _('is not empty')),
], ],
forms.DecimalField: [ forms.DecimalField: [
('exact', _('Is')), ('exact', _('is')),
('n', _('Is Not')), ('n', _('is not')),
('gt', _('Greater Than (>)')), ('gt', _('greater than (>)')),
('gte', _('At Least (≥)')), ('gte', _('at least (≥)')),
('lt', _('Less Than (<)')), ('lt', _('less than (<)')),
('lte', _('At Most (≤)')), ('lte', _('at most (≤)')),
(MODIFIER_EMPTY_TRUE, _('Is Empty')), (MODIFIER_EMPTY_TRUE, _('is empty')),
(MODIFIER_EMPTY_FALSE, _('Is Not Empty')), (MODIFIER_EMPTY_FALSE, _('is not empty')),
], ],
forms.DateField: [ forms.DateField: [
('exact', _('Is')), ('exact', _('is')),
('n', _('Is Not')), ('n', _('is not')),
('gt', _('After')), ('gt', _('after')),
('gte', _('On or After')), ('gte', _('on or after')),
('lt', _('Before')), ('lt', _('before')),
('lte', _('On or Before')), ('lte', _('on or before')),
(MODIFIER_EMPTY_TRUE, _('Is Empty')), (MODIFIER_EMPTY_TRUE, _('is empty')),
(MODIFIER_EMPTY_FALSE, _('Is Not Empty')), (MODIFIER_EMPTY_FALSE, _('is not empty')),
], ],
forms.ModelChoiceField: [ forms.ModelChoiceField: [
('exact', _('Is')), ('exact', _('is')),
('n', _('Is Not')), ('n', _('is not')),
(MODIFIER_EMPTY_TRUE, _('Is Empty')), (MODIFIER_EMPTY_TRUE, _('is empty')),
(MODIFIER_EMPTY_FALSE, _('Is Not Empty')), (MODIFIER_EMPTY_FALSE, _('is not empty')),
], ],
ColorField: [ ColorField: [
('exact', _('Is')), ('exact', _('is')),
('n', _('Is Not')), ('n', _('is not')),
(MODIFIER_EMPTY_TRUE, _('Is Empty')), (MODIFIER_EMPTY_TRUE, _('is empty')),
(MODIFIER_EMPTY_FALSE, _('Is Not Empty')), (MODIFIER_EMPTY_FALSE, _('is not empty')),
], ],
TagFilterField: [ TagFilterField: [
('exact', _('Has These Tags')), ('exact', _('has these tags')),
('n', _('Does Not Have These Tags')), ('n', _('does not have these tags')),
(MODIFIER_EMPTY_TRUE, _('Is Empty')), (MODIFIER_EMPTY_TRUE, _('is empty')),
(MODIFIER_EMPTY_FALSE, _('Is Not Empty')), (MODIFIER_EMPTY_FALSE, _('is not empty')),
], ],
forms.ChoiceField: [ forms.ChoiceField: [
('exact', _('Is')), ('exact', _('is')),
('n', _('Is Not')), ('n', _('is not')),
(MODIFIER_EMPTY_TRUE, _('Is Empty')), (MODIFIER_EMPTY_TRUE, _('is empty')),
(MODIFIER_EMPTY_FALSE, _('Is Not Empty')), (MODIFIER_EMPTY_FALSE, _('is not empty')),
], ],
forms.MultipleChoiceField: [ forms.MultipleChoiceField: [
('exact', _('Is')), ('exact', _('is')),
('n', _('Is Not')), ('n', _('is not')),
(MODIFIER_EMPTY_TRUE, _('Is Empty')), (MODIFIER_EMPTY_TRUE, _('is empty')),
(MODIFIER_EMPTY_FALSE, _('Is Not Empty')), (MODIFIER_EMPTY_FALSE, _('is not empty')),
], ],
} }