clear list count on list edit

This commit is contained in:
j 2016-01-06 10:07:18 +05:30
parent 8fc084b852
commit c86ba8ac99
1 changed files with 2 additions and 0 deletions

View File

@ -181,6 +181,8 @@ def editList(data):
l._query = data['query']
if l.type == 'static' and name != l.name:
Changelog.record(state.user(), 'editlist', name, {'name': l.name})
else:
l.user.clear_smart_list_cache()
l.save()
return l.json()
actions.register(editList, cache=False)