Commit ce3a8dac authored by Bryan Hoyt's avatar Bryan Hoyt

Don't enumerate filters if there aren't any.

parent 257fd1a0
...@@ -957,10 +957,10 @@ class BaseModelView(BaseView, ActionsMixin): ...@@ -957,10 +957,10 @@ class BaseModelView(BaseView, ActionsMixin):
Override this method to provide your own URL filter format. Override this method to provide your own URL filter format.
""" """
filter_idx_by_label = dict((flt.query_label(), i) for i, flt in enumerate(self._filters))
# Gather filters
if not self._filters: if not self._filters:
return None return None
filter_idx_by_label = dict((flt.query_label(), i) for i, flt in enumerate(self._filters))
sfilters = [] sfilters = []
......
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 to comment