From f8c53bc9e576f1465cea2c34069a3ac005c0f1b6 Mon Sep 17 00:00:00 2001 From: Oliver Date: Thu, 5 Sep 2024 14:47:33 +1000 Subject: [PATCH] Fix docstring for uploaded_image (#8077) --- src/backend/InvenTree/report/templatetags/report.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backend/InvenTree/report/templatetags/report.py b/src/backend/InvenTree/report/templatetags/report.py index 6af0fff5cc..d64071d83b 100644 --- a/src/backend/InvenTree/report/templatetags/report.py +++ b/src/backend/InvenTree/report/templatetags/report.py @@ -110,7 +110,7 @@ def uploaded_image( validate=True, **kwargs, ): - """Return a fully-qualified path for an 'uploaded' image. + """Return raw image data from an 'uploaded' image. Arguments: filename: The filename of the image relative to the MEDIA_ROOT directory @@ -124,7 +124,7 @@ def uploaded_image( rotate: Optional rotation to apply to the image Returns: - A fully qualified path to the image + Binary image data to be rendered directly in a tag Raises: FileNotFoundError if the file does not exist