Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
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/sqlalchemy.py
View
2  flaskext/sqlalchemy.py
@@ -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 \
_defines_primary_key(d):
def _join(match):
word = match.group()
Please sign in to comment.
Something went wrong with that request. Please try again.