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 7f09a22 commit f1e6b5aCopy full SHA for f1e6b5a
apps/knowledge/serializers/document.py
@@ -561,7 +561,7 @@ def download_source_file(self):
561
file = QuerySet(File).filter(source_id=self.data.get('document_id')).first()
562
if not file:
563
raise AppApiException(500, _('file not exist'))
564
- return FileSerializer.Operate(id=file.id).get(with_valid=True)
+ return FileSerializer.Operate(data={'id': file.id}).get(with_valid=True)
565
566
def one(self, with_valid=False):
567
if with_valid:
0 commit comments