python-docx-template
python-docx-template copied to clipboard
DocumentPart object has no attribute '_rels'.
Describe the bug
A clear and concise description of what the bug is.
It seems like python-docx has released an new version:
python-docx==1.1.1
docxtpl==0.16.8
uri = 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/header'
def get_headers_footers(self, uri):
> for relKey, val in self.docx._part._rels.items():
E AttributeError: 'DocumentPart' object has no attribute '_rels'. Did you mean: 'rels'?