]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
use python highlight for model example in large collections
authorMike Bayer <mike_mp@zzzcomputing.com>
Sat, 20 May 2023 15:53:44 +0000 (11:53 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 20 May 2023 15:55:36 +0000 (11:55 -0400)
apparently the pycon+sql highlight doesn't work with
class definitions for some reason?   seems like something
to be aware of...

Fixes: #9810
Change-Id: I5cfca5e0fb9d797ff4068526d05e181b4ff71ebf

doc/build/orm/large_collections.rst

index ef1e651e1f4cdae7959d7fc8d7cda1b72fe0bced..a081466e7ea36ab5da6bdefae81b0af79ec095b5 100644 (file)
@@ -34,7 +34,9 @@ Write Only Relationships
 The **write only** loader strategy is the primary means of configuring a
 :func:`_orm.relationship` that will remain writeable, but will not load
 its contents into memory.  A write-only ORM configuration in modern
-type-annotated Declarative form is illustrated below::
+type-annotated Declarative form is illustrated below:
+
+.. sourcecode:: python
 
     >>> from decimal import Decimal
     >>> from datetime import datetime