We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d99e16 commit b60367dCopy full SHA for b60367d
notifications/drf_views.py
@@ -28,6 +28,12 @@ class SurgeAlertFilter(filters.FilterSet):
28
widget=CSVWidget,
29
queryset=MolnixTag.objects.all(),
30
)
31
+ molnix_tag_name = filters.CharFilter(
32
+ field_name="molnix_tags__name",
33
+ lookup_expr="icontains",
34
+ label="tag-name",
35
+ help_text="Single partial match on Molnix tag name",
36
+ )
37
molnix_tag_names = CharInFilter(
38
label="tag-names",
39
field_name="molnix_tags__name",
@@ -50,9 +56,9 @@ class Meta:
50
56
"start": ("exact", "gt", "gte", "lt", "lte"),
51
57
"end": ("exact", "gt", "gte", "lt", "lte"),
52
58
"molnix_id": ("exact", "in"),
53
- "message": ("exact", "in"),
59
+ "message": ("exact", "in", "icontains"),
54
60
"country": ("exact", "in"),
55
- "country__name": ("exact", "in"),
61
+ "country__name": ("exact", "in", "icontains"),
62
"country__iso": ("exact", "in"),
63
"country__iso3": ("exact", "in"),
64
}
0 commit comments