]> 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:01 +0000 (01:12 -0500)
commit6ec40eca1a03a9156ee82f3ce75850778220b39e
treea70bd6198fdf64df2d29f7d6a715e260c94e8213
parentb5cb68ac432bb7477642305504ddcfdb3edaf87f
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
doc/build/changelog/unreleased_12/4374.rst [new file with mode: 0644]
lib/sqlalchemy/ext/declarative/base.py
test/ext/declarative/test_basic.py