summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/ext/declarative
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2014-06-25 14:30:25 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2014-06-25 14:30:25 -0400
commitca58fa5d9338b6dfaa56b25c5affa369188a7086 (patch)
treeca3eafce3ec84b11fd5bc9bd5360342a581e0dfe /lib/sqlalchemy/ext/declarative
parent89a6e348032122e57238e685962d87975b6ccb65 (diff)
downloadsqlalchemy-ca58fa5d9338b6dfaa56b25c5affa369188a7086.tar.gz
- Fixed bug when the declarative ``__abstract__`` flag was not being
distinguished for when it was actually the value ``False``. The ``__abstract__`` flag needs to acutally evaluate to a True value at the level being tested. fixes #3097
Diffstat (limited to 'lib/sqlalchemy/ext/declarative')
-rw-r--r--lib/sqlalchemy/ext/declarative/base.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/ext/declarative/base.py b/lib/sqlalchemy/ext/declarative/base.py
index 0e68faa03..308c09691 100644
--- a/lib/sqlalchemy/ext/declarative/base.py
+++ b/lib/sqlalchemy/ext/declarative/base.py
@@ -56,7 +56,7 @@ def _as_declarative(cls, classname, dict_):
@event.listens_for(mapper, "before_configured")
def go():
cls.__declare_first__()
- if '__abstract__' in base.__dict__:
+ if '__abstract__' in base.__dict__ and base.__abstract__:
if (base is cls or
(base in cls.__bases__ and not _is_declarative_inherits)
):