From: Doctor Date: Thu, 28 Apr 2022 05:11:13 +0000 (+0300) Subject: import declarative_base from sqlalchemy.orm X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=53e0b609198351be776aaec9cb8528d6e08cbfe1;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git import declarative_base from sqlalchemy.orm --- diff --git a/doc/build/orm/collections.rst b/doc/build/orm/collections.rst index 891e5ff524..96a936a04a 100644 --- a/doc/build/orm/collections.rst +++ b/doc/build/orm/collections.rst @@ -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()