clear list count on list edit
This commit is contained in:
parent
8fc084b852
commit
c86ba8ac99
1 changed files with 2 additions and 0 deletions
|
@ -181,6 +181,8 @@ def editList(data):
|
||||||
l._query = data['query']
|
l._query = data['query']
|
||||||
if l.type == 'static' and name != l.name:
|
if l.type == 'static' and name != l.name:
|
||||||
Changelog.record(state.user(), 'editlist', name, {'name': l.name})
|
Changelog.record(state.user(), 'editlist', name, {'name': l.name})
|
||||||
|
else:
|
||||||
|
l.user.clear_smart_list_cache()
|
||||||
l.save()
|
l.save()
|
||||||
return l.json()
|
return l.json()
|
||||||
actions.register(editList, cache=False)
|
actions.register(editList, cache=False)
|
||||||
|
|
Loading…
Reference in a new issue