Commit 06ddd311 by Bach Dániel

dashboard: fix tests

parent e84b8b16
...@@ -82,6 +82,8 @@ class FilterMixin(object): ...@@ -82,6 +82,8 @@ class FilterMixin(object):
excludes = {} excludes = {}
for key, value in self.request.GET.items(): for key, value in self.request.GET.items():
if not key:
continue
exclude = key.startswith('!') exclude = key.startswith('!')
key = key.lstrip('!') key = key.lstrip('!')
if key not in self.allowed_filters: if key not in self.allowed_filters:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment