]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Add missing attribute in hybrid.py docs 4520/head
authorDaniel Demmel <dain@danieldemmel.me>
Mon, 4 Mar 2019 18:10:22 +0000 (18:10 +0000)
committerGitHub <noreply@github.com>
Mon, 4 Mar 2019 18:10:22 +0000 (18:10 +0000)
lib/sqlalchemy/ext/hybrid.py

index 556514bab27f3474798ae0415a1ecab951cf5da3..61bd656fba4e939ed9a0f591188ae9fc235ce330 100644 (file)
@@ -509,7 +509,7 @@ reference the instrumented attribute back to the hybrid object::
 
         last_name = Column(String)
 
-        @FirstNameOnly.overrides.expression
+        @FirstNameOnly.name.overrides.expression
         def name(cls):
             return func.concat(cls.first_name, ' ', cls.last_name)