mirror of
https://github.com/veops/cmdb.git
synced 2025-08-07 10:47:47 +08:00
feat(api): save relation search option
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
# -*- coding:utf-8 -*-
|
||||
|
||||
|
||||
from collections import defaultdict
|
||||
|
||||
import copy
|
||||
@@ -384,7 +383,7 @@ class PreferenceManager(object):
|
||||
def add_search_option(**kwargs):
|
||||
kwargs['uid'] = current_user.uid
|
||||
|
||||
if kwargs['name'] in ('__recent__', '__favor__'):
|
||||
if kwargs['name'] in ('__recent__', '__favor__', '__relation_favor__'):
|
||||
if kwargs['name'] == '__recent__':
|
||||
for i in PreferenceSearchOption.get_by(
|
||||
only_query=True, name=kwargs['name'], uid=current_user.uid).order_by(
|
||||
|
Reference in New Issue
Block a user