Fix NamedMultiWidget issue on Python 3
Affects document checkout form Signed-off-by: Roberto Rosario <roberto.rosario@mayan-edms.com>
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user