misc: convert old roles module location when unpickling (#36860)

This commit is contained in:
Frédéric Péters 2019-10-11 16:08:28 +02:00
parent 91087f529c
commit 6d3559fa12
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ class UnpicklerClass(pickle.Unpickler):
def find_class(self, module, name):
if module == 'qommon.form':
module = 'wcs.qommon.form'
elif module in ('formdata', 'formdef', 'users', 'workflows'):
elif module in ('formdata', 'formdef', 'roles', 'users', 'workflows'):
module = 'wcs.%s' % module
__import__(module)
mod = sys.modules[module]