Fix clean translation for string selection for issue575
This commit is contained in:
1 parent
39f7e895d4
commit
06a0d3a5e2
1 file changed
+3
-1
@@ -746,7 +746,9 @@ class TranslationClean(Wizard):
|
||||
if not hasattr(field, 'selection') or not field.selection:
|
||||
to_delete.append(translation.id)
|
||||
continue
|
||||
if translation.src not in dict(field.selection).values():
|
||||
if isinstance(field.selection, (tuple, list)) \
|
||||
and translation.src not in \
|
||||
dict(field.selection).values():
|
||||
to_delete.append(translation.id)
|
||||
continue
|
||||
elif translation.type == 'view':
|
||||
|
||||
Reference in new issue
Block a user