]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Mention the correct way of adding multiple attributes which refer to the same column
authorEoghan Murray <eoghan@getthere.ie>
Thu, 7 Apr 2016 10:57:14 +0000 (11:57 +0100)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 9 Apr 2016 01:42:46 +0000 (21:42 -0400)
(cherry picked from commit 2880f24d93a774d02cde83dbabfd80ad279cbb05)

lib/sqlalchemy/ext/declarative/base.py

index 59ebe3722a570b96504c6d55b580615164520389..3404ce9f474e1376f4c53396d7c9b2b8a157d0b6 100644 (file)
@@ -351,7 +351,8 @@ class _MapperConfig(object):
                 util.warn(
                     "On class %r, Column object %r named "
                     "directly multiple times, "
-                    "only one will be used: %s" %
+                    "only one will be used: %s. "
+                    "Consider using orm.synonym instead" %
                     (self.classname, name, (", ".join(sorted(keys))))
                 )