css.patch, less html5 syntax error noise, thanks Jonathan

This commit is contained in:
mdipierro
2013-07-12 09:52:31 -05:00
parent 9643086b34
commit d1065178bd
4 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -2665,8 +2665,8 @@ class IS_EMPTY_OR(Validator):
if hasattr(other, 'options'):
self.options = self._options
def _options(self, zero=False):
options = self.other.options(zero=zero)
def _options(self):
options = self.other.options()
if (not options or options[0][0] != '') and not self.multiple:
options.insert(0, ('', ''))
return options