]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Repair dictlike-polymorphic
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 24 May 2016 20:23:37 +0000 (16:23 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 24 May 2016 20:25:53 +0000 (16:25 -0400)
dictlike-polymorphic was broken by the change
in 1714e0d6ef28411e9c6633018564af1cae58c3d9.  Use the new
style of inheritance.

Fixes: #3704
Change-Id: I3509ef4bf7772dd6994daf600accf4a2c5eb6973

doc/build/changelog/changelog_10.rst
examples/vertical/dictlike-polymorphic.py

index 1b2414f2ad741c30aac299bc38432b49ee69e9ce..5f9521c4792778beaedb569afbf499ea3427b7e2 100644 (file)
         should be forced to be ``None`` even if :paramref:`.MetaData.schema`
         is specified.
 
+    .. change::
+        :tags: bug, examples
+        :tickets: 3704
+
+        Fixed a regression that occurred in the
+        examples/vertical/dictlike-polymorphic.py example which prevented it
+        from running.
+
 .. changelog::
     :version: 1.0.13
     :released: May 16, 2016
index e3d5ba5788d97e7eb0833cc492fc68d056866eea..7147ac40bea76e8fa64606206c77d69ccee79fa4 100644 (file)
@@ -134,7 +134,7 @@ if __name__ == '__main__':
         char_value = Column(UnicodeText, info={'type': (str, 'string')})
         boolean_value = Column(Boolean, info={'type': (bool, 'boolean')})
 
-    class Animal(ProxiedDictMixin._base_class(Base)):
+    class Animal(ProxiedDictMixin, Base):
         """an Animal"""
 
         __tablename__ = 'animal'