Please fix it in BaseDocumentForm in **init**: self.instance = opts.document There need self.instance = opts.document()