clear list count on list edit

This commit is contained in:
j 2016-01-06 10:07:18 +05:30
parent 8fc084b852
commit c86ba8ac99

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)