This commit is contained in:
Leonel Câmara committed 2017-07-14 20:17:30 +01:00
1 parent 113df51ef9
commit b7b8a009f2
5 files changed
+16 -16

No files matched your search

+2 -2
View File
@@ -405,7 +405,7 @@ class RadioWidget(OptionsWidget):
cols = attributes.get('cols', 1)
totals = len(options)
mods = totals % cols
rows = totals / cols
rows = totals // cols
if mods:
rows += 1
@@ -471,7 +471,7 @@ class CheckboxesWidget(OptionsWidget):
cols = attributes.get('cols', 1)
totals = len(options)
mods = totals % cols
rows = totals / cols
rows = totals // cols
if mods:
rows += 1