Skip to content

Commit

Permalink
Add the ability to filter by null values #98
Browse files Browse the repository at this point in the history
Signed-off-by: tdruez <[email protected]>
  • Loading branch information
tdruez committed Nov 25, 2024
1 parent 860551d commit 05ee85f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions vulnerabilities/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,3 +148,8 @@ class Meta:
"vulnerability_analyses__justification",
"exploitability",
]

def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.filters["vulnerability_analyses__state"].extra["null_label"] = "(No values)"
self.filters["vulnerability_analyses__justification"].extra["null_label"] = "(No values)"

0 comments on commit 05ee85f

Please sign in to comment.