Commit 7e9c6387 authored by Boris Nieuwenhuis's avatar Boris Nieuwenhuis

fix for

    raise TypeError("Boolean value of this clause is not defined")
TypeError: Boolean value of this clause is not defined

see
http://www.sqlalchemy.org/trac/wiki/06Migration#AnImportantExpressionLanguageGotcha
parent 7cd9efdf
......@@ -137,7 +137,7 @@ class AdminModelConverter(ModelConverterBase):
if default is not None:
callable_default = getattr(default, 'arg', None)
if callable_default and callable(callable_default):
if callable_default is not None and callable(callable_default):
default = callable_default(None)
if default is not None:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment