]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
import declarative_base from sqlalchemy.orm
authorDoctor <thirvondukr@gmail.com>
Thu, 28 Apr 2022 05:11:13 +0000 (08:11 +0300)
committerDoctor <thirvondukr@gmail.com>
Thu, 28 Apr 2022 05:11:13 +0000 (08:11 +0300)
doc/build/orm/collections.rst

index 891e5ff524507df5acae88ed6dc70daa0b5e2769..96a936a04a5863ac22609e29568fb19abf0bf2d2 100644 (file)
@@ -205,8 +205,7 @@ of the mapped class as a key.   Below we map an ``Item`` class containing
 a dictionary of ``Note`` items keyed to the ``Note.keyword`` attribute::
 
     from sqlalchemy import Column, ForeignKey, Integer, String
-    from sqlalchemy.ext.declarative import declarative_base
-    from sqlalchemy.orm import relationship
+    from sqlalchemy.orm import declarative_base, relationship
     from sqlalchemy.orm.collections import attribute_mapped_collection
 
     Base = declarative_base()