]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Warn for lower-case column attribute on declarative
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 26 Nov 2018 05:59:01 +0000 (00:59 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 26 Nov 2018 06:12:59 +0000 (01:12 -0500)
commit9e53163dbdee113f9c84311ca5804a16ac82fbf7
tree04c6b4729c737781908a654f0a17f9e8c1fcfb89
parent5b7665137e06485991ec4f7b7011f18d6f6b4b5e
Warn for lower-case column attribute on declarative

A warning is emitted in the case that a :func:`.column` object is applied to
a declarative class, as it seems likely this intended to be a
:class:`.Column` object.

Fixes: #4374
Change-Id: I2e617ef65547162e3ba6587c168548ad0cf6203d
(cherry picked from commit 6ec40eca1a03a9156ee82f3ce75850778220b39e)
doc/build/changelog/unreleased_12/4374.rst [new file with mode: 0644]
lib/sqlalchemy/ext/declarative/base.py
test/ext/declarative/test_basic.py