]> 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)
committerEoghan Murray <eoghan@getthere.ie>
Thu, 7 Apr 2016 10:57:14 +0000 (11:57 +0100)
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))))
                 )