]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
try to clarify defaultload option docs
authorFederico Caselli <cfederico87@gmail.com>
Fri, 6 Oct 2023 19:36:50 +0000 (21:36 +0200)
committerFederico Caselli <cfederico87@gmail.com>
Fri, 6 Oct 2023 19:36:50 +0000 (21:36 +0200)
Change-Id: I529279ba5c7b546faf71a63aa680233cc3cae326

lib/sqlalchemy/orm/strategy_options.py

index 757e1be853aad023c251ccb20d01c4d971a5bf64..c9ccd9cde92cd7afc1a8c21517885956de01329e 100644 (file)
@@ -542,7 +542,12 @@ class _AbstractLoad(traversals.GenerativeOnTraversal, LoaderOption):
         )
 
     def defaultload(self, attr: _AttrType) -> Self:
-        """Indicate an attribute should load using its default loader style.
+        """Indicate an attribute should load using its predefined loader style.
+
+        The behavior of this loading option is to not change the current
+        loading style of the attribute, meaning that the previously configured
+        one is used or, if no previous style was selected, the default
+        loading will be used.
 
         This method is used to link to other loader options further into
         a chain of attributes without altering the loader style of the links