From 41214fa90ec7ba037f599b7830d9d48a817c9adf Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Mon, 11 Nov 2019 03:00:17 -0400 Subject: [PATCH] Fix NamedMultiWidget issue on Python 3 Affects document checkout form Signed-off-by: Roberto Rosario --- mayan/apps/common/widgets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mayan/apps/common/widgets.py b/mayan/apps/common/widgets.py index 30ac5cb223..1af27ad451 100644 --- a/mayan/apps/common/widgets.py +++ b/mayan/apps/common/widgets.py @@ -79,7 +79,7 @@ class NamedMultiWidget(forms.widgets.Widget): def id_for_label(self, id_): if id_: - id_ += '_{}'.format(self.widgets.keys()[0]) + id_ += '_{}'.format(list(self.widgets.keys())[0]) return id_ def value_from_datadict(self, data, files, name):