Skip to content
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.

Commit

Permalink
context columns cannot be filtered for search input
Browse files Browse the repository at this point in the history
  • Loading branch information
tumb1er committed Apr 12, 2016
1 parent efcee87 commit 4f06401
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion alco/grep/templates/grep/log_view.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
</span>
</div>
<div class="btn-group" id="filter-toggles">
{% for c in columns %}
{% for c in filtered_columns %}
{% if not c.filtered %}
<button class="btn btn-xs btn-default filter-toggler" value="{{ c.name }}">{{ c.name }}</button>
{% endif %}
Expand Down
1 change: 1 addition & 0 deletions alco/grep/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ def get_context_data(self, **kwargs):
cd['filters'] = filters
cd['columns'] = columns
cd['context_columns'] = context_columns
cd['filtered_columns'] = list(set(columns) | set(context_columns))
cd['column_names'] = [c.name for c in columns]
return cd

Expand Down

0 comments on commit 4f06401

Please sign in to comment.