Browse Source

[Update] 修改操作日志搜索字段没清空的问题

pull/3889/head
Bai 5 years ago
parent
commit
48fa26a3bc
  1. 2
      apps/audits/templates/audits/operate_log_list.html
  2. 1
      apps/audits/views.py

2
apps/audits/templates/audits/operate_log_list.html

@ -44,7 +44,7 @@
<select class="select2 form-control" name="action">
<option value="">{% trans 'Action' %}</option>
{% for k, v in actions.items %}
<option value="{{ k }}" {% if k == action %} selected {% endif %}>{{ v }}</option>
<option value="{{ k }}" {% if k == search_action %} selected {% endif %}>{{ v }}</option>
{% endfor %}
</select>
</div>

1
apps/audits/views.py

@ -122,6 +122,7 @@ class OperateLogListView(PermissionsMixin, DatetimeSearchMixin, ListView):
context = {
'user_list': current_org.get_org_members(),
'actions': self.actions_dict,
'search_action': self.action,
'resource_type_list': get_resource_type_list(),
'date_from': self.date_from,
'date_to': self.date_to,

Loading…
Cancel
Save