We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ec5dcd commit 4cbbdabCopy full SHA for 4cbbdab
src/docx/opc/part.py
@@ -145,7 +145,9 @@ def related_parts(self):
145
@lazyproperty
146
def rels(self):
147
"""|Relationships| instance holding the relationships for this part."""
148
- return Relationships(self._partname.baseURI)
+ # -- prevent breakage in `python-docx-template` by retaining legacy `._rels` attribute --
149
+ self._rels = Relationships(self._partname.baseURI)
150
+ return self._rels
151
152
def target_ref(self, rId: str) -> str:
153
"""Return URL contained in target ref of relationship identified by `rId`."""
0 commit comments