added better comments to address issue 1033
This commit is contained in:
@@ -1 +1 @@
|
||||
Version 2.0.9 (2012-09-27 15:12:31) stable
|
||||
Version 2.0.9 (2012-09-27 21:45:13) stable
|
||||
|
||||
+5
-6
@@ -379,12 +379,11 @@ class CheckboxesWidget(OptionsWidget):
|
||||
requires = field.requires
|
||||
if not isinstance(requires, (list, tuple)):
|
||||
requires = [requires]
|
||||
if requires:
|
||||
if hasattr(requires[0], 'options'):
|
||||
options = requires[0].options()
|
||||
else:
|
||||
raise SyntaxError, 'widget cannot determine options of %s' \
|
||||
% field
|
||||
if requires and hasattr(requires[0], 'options'):
|
||||
options = requires[0].options()
|
||||
else:
|
||||
raise SyntaxError, 'widget cannot determine options of %s' \
|
||||
% field
|
||||
|
||||
options = [(k, v) for k, v in options if k != '']
|
||||
opts = []
|
||||
|
||||
Reference in New Issue
Block a user