Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Merge pull request #54 from rdunklau/patch-1

Truth testing on a table causes TypeError
  • Loading branch information...
commit e8450c488a4287fabcf06cf9028dcc0a2cf54289 2 parents a05d15a + 829950d
@mitsuhiko authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  flaskext/
2  flaskext/
@@ -451,7 +451,7 @@ def __new__(cls, name, bases, d):
# attach a primary key to support model inheritance that does
# not use joins. We also don't want a table name if a whole
# table is defined
- if not tablename and not d.get('__table__') and \
+ if not tablename and not d.get('__table__') is None and \
def _join(match):
word =
Please sign in to comment.
Something went wrong with that request. Please try again.