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

pull/3889/head
Bai 2020-04-14 11:03:12 +08:00
parent d969563e43
commit 48fa26a3bc
2 changed files with 2 additions and 1 deletions

View File

@ -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>

View File

@ -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,